pub struct Slice<'de> { /* private fields */ }Expand description
A simple Flavor representing the deserialization from a borrowed slice
Implementations§
Trait Implementations§
Source§impl<'de> Flavor<'de> for Slice<'de>
 
impl<'de> Flavor<'de> for Slice<'de>
Source§fn finalize(self) -> Result<&'de [u8]>
 
fn finalize(self) -> Result<&'de [u8]>
Return the remaining (unused) bytes in the Deserializer
Source§type Remainder = &'de [u8]
 
type Remainder = &'de [u8]
The remaining data of this flavor after deserializing has completed. Read more
Source§fn size_hint(&self) -> Option<usize>
 
fn size_hint(&self) -> Option<usize>
Returns the number of bytes remaining in the message, if known. Read more
Auto Trait Implementations§
impl<'de> Freeze for Slice<'de>
impl<'de> RefUnwindSafe for Slice<'de>
impl<'de> !Send for Slice<'de>
impl<'de> !Sync for Slice<'de>
impl<'de> Unpin for Slice<'de>
impl<'de> UnwindSafe for Slice<'de>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more