pub trait DecodeOwned {
type Output: Debug;
type Error: From<Error> + Debug;
// Required method
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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl DecodeOwned for f32
impl DecodeOwned for f32
Source§impl DecodeOwned for f64
impl DecodeOwned for f64
Source§impl DecodeOwned for i8
impl DecodeOwned for i8
Source§impl DecodeOwned for i16
impl DecodeOwned for i16
Source§impl DecodeOwned for i32
impl DecodeOwned for i32
Source§impl DecodeOwned for i64
impl DecodeOwned for i64
Source§impl DecodeOwned for u8
impl DecodeOwned for u8
Source§impl DecodeOwned for u16
impl DecodeOwned for u16
Source§impl DecodeOwned for u32
impl DecodeOwned for u32
Source§impl DecodeOwned for u64
impl DecodeOwned for u64
Source§impl<T> DecodeOwned for Vec<T>
DecodeOwned for alloc::vec::Vecs containing DecodeOwned types
impl<T> DecodeOwned for Vec<T>
DecodeOwned for alloc::vec::Vecs containing DecodeOwned types
Source§impl<T, const N: usize> DecodeOwned for [T; N]where
T: DecodeOwned<Output = T> + Debug + Default + Copy,
<T as DecodeOwned>::Error: From<Error> + Debug,
impl<T, const N: usize> DecodeOwned for [T; N]where
T: DecodeOwned<Output = T> + Debug + Default + Copy,
<T as DecodeOwned>::Error: From<Error> + Debug,
Source§impl<T, const N: usize> DecodeOwned for Vec<T, N>
DecodeOwned for heapless::Vecs containing DecodeOwned types
impl<T, const N: usize> DecodeOwned for Vec<T, N>
DecodeOwned for heapless::Vecs containing DecodeOwned types