pub struct StdVec(pub Vec<u8>);Expand description
The StdVec flavor is a wrapper type around a std::vec::Vec.
This type is only available when the (non-default) use-std feature is active
Tuple Fields§
§0: Vec<u8>Trait Implementations§
Source§impl SerFlavor for StdVec
impl SerFlavor for StdVec
Source§type Output = Vec<u8>
type Output = Vec<u8>
The
Output type is what this flavor “resolves” to when the serialization is complete.
For storage flavors, this is typically a concrete type. For modification flavors, this is
typically a generic parameter for the storage flavor they are wrapped around.Source§fn try_extend(&mut self, data: &[u8]) -> Result<(), ()>
fn try_extend(&mut self, data: &[u8]) -> Result<(), ()>
The try_extend() trait method can be implemented when there is a more efficient way of processing
multiple bytes at once, such as copying a slice to the output, rather than iterating over one byte
at a time.
Auto Trait Implementations§
impl Freeze for StdVec
impl RefUnwindSafe for StdVec
impl Send for StdVec
impl Sync for StdVec
impl Unpin for StdVec
impl UnwindSafe for StdVec
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