Struct postcard::flavors::HVec [−][src]
The HVec
flavor is a wrapper type around a heapless::Vec
. This is a stack
allocated data structure, with a fixed maximum size and variable amount of contents.
Trait Implementations
impl<B: ArrayLength<u8>> Default for HVec<B>
[src]
impl<B: ArrayLength<u8>> Index<usize> for HVec<B>
[src]
impl<B: ArrayLength<u8>> IndexMut<usize> for HVec<B>
[src]
impl<'a, B> SerFlavor for HVec<B> where
B: ArrayLength<u8>,
[src]
B: ArrayLength<u8>,
type Output = Vec<u8, B>
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. Read more
fn try_extend(&mut self, data: &[u8]) -> Result<(), ()>
[src]
fn try_push(&mut self, data: u8) -> Result<(), ()>
[src]
fn release(self) -> Result<Vec<u8, B>, ()>
[src]
fn try_push_varint_usize(&mut self, data: &VarintUsize) -> Result<(), ()>
[src]
Auto Trait Implementations
impl<B> RefUnwindSafe for HVec<B> where
<B as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
[src]
<B as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<B> Send for HVec<B>
[src]
impl<B> Sync for HVec<B>
[src]
impl<B> Unpin for HVec<B> where
<B as ArrayLength<u8>>::ArrayType: Unpin,
[src]
<B as ArrayLength<u8>>::ArrayType: Unpin,
impl<B> UnwindSafe for HVec<B> where
<B as ArrayLength<u8>>::ArrayType: UnwindSafe,
[src]
<B as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,