Function rbson::from_slice
source · [−]pub fn from_slice<'de, T>(bytes: &'de [u8]) -> Result<T> where
T: Deserialize<'de>,
Expand description
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>,
Deserialize an instance of type T
from a slice of BSON bytes.