Struct postcard::ser_flavors::ExtendFlavor
source · pub struct ExtendFlavor<T> { /* private fields */ }
Expand description
Wrapper over a std::iter::Extend
Implementations§
source§impl<T> ExtendFlavor<T>
impl<T> ExtendFlavor<T>
sourcepub fn new(iter: T) -> Self
pub fn new(iter: T) -> Self
Create a new Self flavor from a given std::iter::Extend
Trait Implementations§
source§impl<T> Flavor for ExtendFlavor<T>
impl<T> Flavor for ExtendFlavor<T>
§type Output = T
type Output = T
The
Output
type is what this storage “resolves” to when the serialization is complete,
such as a slice or a Vec of some sort.source§fn try_push(&mut self, data: u8) -> Result<()>
fn try_push(&mut self, data: u8) -> Result<()>
The try_push() trait method can be used to push a single byte to be modified and/or stored
Auto Trait Implementations§
impl<T> Freeze for ExtendFlavor<T>where
T: Freeze,
impl<T> RefUnwindSafe for ExtendFlavor<T>where
T: RefUnwindSafe,
impl<T> Send for ExtendFlavor<T>where
T: Send,
impl<T> Sync for ExtendFlavor<T>where
T: Sync,
impl<T> Unpin for ExtendFlavor<T>where
T: Unpin,
impl<T> UnwindSafe for ExtendFlavor<T>where
T: UnwindSafe,
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