[][src]Trait mohan::ser::Readable

pub trait Readable where
    Self: Sized
{ fn read(reader: &mut dyn Reader) -> Result<Self, Error>; }

Trait that every type that can be deserialized from binary must implement. Reads directly to a Reader, a utility type thinly wrapping an underlying Read implementation.

Required methods

fn read(reader: &mut dyn Reader) -> Result<Self, Error>

Reads the data necessary to this Readable from the provided reader

Loading content...

Implementations on Foreign Types

impl Readable for u8[src]

impl Readable for u16[src]

impl Readable for u32[src]

impl Readable for i32[src]

impl Readable for u64[src]

impl Readable for i64[src]

impl<T> Readable for Vec<T> where
    T: Readable
[src]

impl<A: Readable, B: Readable> Readable for (A, B)[src]

impl<A: Readable, B: Readable, C: Readable> Readable for (A, B, C)[src]

impl<A: Readable, B: Readable, C: Readable, D: Readable> Readable for (A, B, C, D)[src]

impl Readable for Scalar[src]

impl Readable for CompressedRistretto[src]

Loading content...

Implementors

impl Readable for H256[src]

impl Readable for ProtocolVersion[src]

impl Readable for VarInt[src]

impl Readable for TAI64[src]

impl Readable for RistrettoBoth[src]

Loading content...