Skip to main content

Readable

Trait Readable 

Source
pub trait Readable: Sized {
    // Required method
    fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>;
}
Expand description

A trait for objects that can be read.

Required Methods§

Source

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Reads this object with the specified writer and endian.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Readable for bool

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for f32

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for f64

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for i8

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for i16

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for i32

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for i64

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for i128

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for u8

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for u16

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for u32

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for u64

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Source§

impl Readable for u128

Source§

fn read(reader: impl ReadExt, endian: Endian) -> Result<Self>

Implementors§