Readable

Trait Readable 

Source
pub trait Readable {
    // Required method
    fn read(rx: &mut dyn Reader) -> Self;
}
Expand description

Value that can be retrieved from a Reader.

Required Methods§

Source

fn read(rx: &mut dyn Reader) -> Self

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 Readable for Option<u8>

Source§

fn read(rx: &mut dyn Reader) -> Self

Source§

impl Readable for u8

Source§

fn read(rx: &mut dyn Reader) -> Self

Source§

impl Readable for String

Source§

fn read(rx: &mut dyn Reader) -> Self

Source§

impl Readable for Vec<u8>

Source§

fn read(rx: &mut dyn Reader) -> Self

Source§

impl<const N: usize> Readable for [u8; N]

Source§

fn read(rx: &mut dyn Reader) -> Self

Implementors§