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.

Object Safety§

This trait is not object safe.

Implementors§