Trait 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§

Source

fn read(&self) -> Result<T, TBytesError>

Reads value of type T.

Source

fn read_array<const N: usize>(&self) -> Result<[T; N], TBytesError>

Reads array of values of type T.

§Arguments

Array length is specified as a generic parameter N.

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.

Implementors§