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>
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.