Struct postcard::de_flavors::Slice
source · 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
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