Trait mavspec::rust::spec::tbytes::bytes_reader::TBytesReaderFor
source · pub trait TBytesReaderFor<T> {
// Required methods
fn read(&self) -> Result<T, TBytesError>;
fn read_array<const N: usize>(&self) -> Result<[T; N], TBytesError>;
}
Expand description
Type-aware read interface for TBytesReader
.
Required Methods§
sourcefn read(&self) -> Result<T, TBytesError>
fn read(&self) -> Result<T, TBytesError>
Reads value of type T
.
sourcefn read_array<const N: usize>(&self) -> Result<[T; N], TBytesError>
fn read_array<const N: usize>(&self) -> Result<[T; N], TBytesError>
Object Safety§
This trait is not object safe.