pub trait Deserializer<'a> {
// Required methods
fn is_empty(&self) -> bool;
fn advance(&mut self, len: usize) -> Result<Self>
where Self: Sized;
fn pop(&mut self, len: usize) -> Result<Cow<'a, [u8]>>;
}Expand description
A trait for deserializing data from a byte slice.
Required Methods§
Implementations on Foreign Types§
Source§impl<'a> Deserializer<'a> for &'a [u8]
Implements the Deserializer trait for a byte slice.
impl<'a> Deserializer<'a> for &'a [u8]
Implements the Deserializer trait for a byte slice.