[][src]Trait mohan::ser::Writeable

pub trait Writeable {
    fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>;
}

Trait that every type that can be serialized as binary must implement. Writes directly to a Writer, a utility type thinly wrapping an underlying Write implementation.

Required methods

fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>

Write the data held by this Writeable to the provided writer

Loading content...

Implementations on Foreign Types

impl Writeable for u8[src]

impl Writeable for u16[src]

impl Writeable for u32[src]

impl Writeable for i32[src]

impl Writeable for u64[src]

impl Writeable for i64[src]

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

impl<'a, A: Writeable> Writeable for &'a A[src]

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

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

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

impl Writeable for [u8; 4][src]

impl Writeable for Scalar[src]

impl Writeable for CompressedRistretto[src]

Loading content...

Implementors

impl Writeable for H256[src]

impl Writeable for ProtocolVersion[src]

impl Writeable for TAI64[src]

impl Writeable for RistrettoBoth[src]

impl Writeable for VarInt[src]

Loading content...