pub fn from_v8_cached<'de, 'a, 'b, 's, T>(
  scope: &'b mut v8::HandleScope<'s>,
  input: v8::Local<'a, v8::Value>,
  key_cache: &mut KeyCache,
) -> Result<T>
where
  T: Deserialize<'de>,
{
  let mut deserializer = Deserializer::new(scope, input, Some(key_cache));
  let t = T::deserialize(&mut deserializer)?;
  Ok(t)
}
// like from_v8 except accepts a KeyCache to optimize struct key decoding
like from_v8 except accepts a KeyCache to optimize struct key decoding
like from_v8 except accepts a KeyCache to optimize struct key decoding
pub fn from_v8_cached<'de, 'a, 'b, 's, T>(
  scope: &'b mut v8::HandleScope<'s>,
  input: v8::Local<'a, v8::Value>,
  key_cache: &mut KeyCache,
) -> Result<T>
where
  T: Deserialize<'de>,
{
  let mut deserializer = Deserializer::new(scope, input, Some(key_cache));
  let t = T::deserialize(&mut deserializer)?;
  Ok(t)
}
pub fn from_v8_cached < ' de , ' a , ' b , ' s , T > ( scope : & ' b mut v8 :: HandleScope < ' s > , input : v8 :: Local < ' a , v8 :: Value > , key_cache : & mut KeyCache , ) -> Result < T > where T : Deserialize < ' de > , { let mut deserializer = Deserializer :: new ( scope , input , Some ( key_cache ) ) ; let t = T :: deserialize ( & mut deserializer ) ? ; Ok ( t ) }
like from_v8 except accepts a KeyCache to optimize struct key decoding
like from_v8 except accepts a KeyCache to optimize struct key decoding
scope
&'b mut v8::HandleScope<'s>
input
v8::Local<'a, v8::Value>
key_cache
&mut KeyCache
scope
&'b mut v8::HandleScope<'s>
input
v8::Local<'a, v8::Value>
key_cache
&mut KeyCache