pub trait Readwhere
Self: Sized,{
// Required method
fn from_bytes(
data: &mut impl ExactSizeIterator<Item = u8>,
) -> Result<Self, ParserError>;
}Expand description
A trait for reading a non fixed amount of data.
Required Methods§
fn from_bytes( data: &mut impl ExactSizeIterator<Item = u8>, ) -> Result<Self, ParserError>
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<T> Read for Vec<T>where
T: Read,
Available on crate feature non_fixed only.
impl<T> Read for Vec<T>where
T: Read,
Available on crate feature
non_fixed only.fn from_bytes( data: &mut impl ExactSizeIterator<Item = u8>, ) -> Result<Self, ParserError>
Source§impl<const N: usize, T: Read + Default + Copy> Read for [T; N]
Available on crate feature non_fixed only.
impl<const N: usize, T: Read + Default + Copy> Read for [T; N]
Available on crate feature
non_fixed only.