Trait encdec_base::decode::DecodeOwned
source · [−]pub trait DecodeOwned {
type Output: Debug;
type Error: From<Error> + Debug;
fn decode_owned(buff: &[u8]) -> Result<(Self::Output, usize), Self::Error>;
}Expand description
Decode trait implemented for owned types
This allows eliding lifetime constraints for owned (ie. self-contained, not reference) types and provides a blanket Decode implementation
Required Associated Types
Required Methods
Implementations on Foreign Types
sourceimpl<T> DecodeOwned for Vec<T>where
T: DecodeOwned<Output = T> + Debug,
<T as DecodeOwned>::Error: From<Error> + Debug,
impl<T> DecodeOwned for Vec<T>where
T: DecodeOwned<Output = T> + Debug,
<T as DecodeOwned>::Error: From<Error> + Debug,
DecodeOwned for alloc::vec::Vecs containing DecodeOwned types
type Error = <T as DecodeOwned>::Error
type Output = Vec<<T as DecodeOwned>::Output, Global>
fn decode_owned(buff: &[u8]) -> Result<(Self::Output, usize), Self::Error>
sourceimpl<T, const N: usize> DecodeOwned for Vec<T, N>where
T: DecodeOwned<Output = T> + Debug,
<T as DecodeOwned>::Error: From<Error> + Debug,
impl<T, const N: usize> DecodeOwned for Vec<T, N>where
T: DecodeOwned<Output = T> + Debug,
<T as DecodeOwned>::Error: From<Error> + Debug,
DecodeOwned for heapless::Vecs containing DecodeOwned types