pub fn from_slice<'de, T>(bytes: &'de [u8]) -> Result<T>
where
    T: Deserialize<'de>,
{
    let mut deserializer = raw::Deserializer::new(bytes, false);
    T::deserialize(&mut deserializer)
}
/// Deserialize an instance of type `T` from a slice of BSON bytes.
Deserialize an instance of type `T` from a slice of BSON bytes.
Deserialize an instance of type ` T ` from a slice of BSON bytes .
pub fn from_slice<'de, T>(bytes: &'de [u8]) -> Result<T>
where
    T: Deserialize<'de>,
{
    let mut deserializer = raw::Deserializer::new(bytes, false);
    T::deserialize(&mut deserializer)
}
pub fn from_slice < ' de , T > ( bytes : & ' de [ u8 ] ) -> Result < T > where T : Deserialize < ' de > , { let mut deserializer = raw :: Deserializer :: new ( bytes , false ) ; T :: deserialize ( & mut deserializer ) }
Deserialize an instance of type `T` from a slice of BSON bytes.
Deserialize an instance of type ` T ` from a slice of BSON bytes .
bytes
&'de [u8]
bytes
&'de [u8]