WriteSelf

Trait WriteSelf 

Source
pub trait WriteSelf {
    // Required methods
    fn write_self<W: Write>(&self, out: W) -> Result<()>;
    fn size(&self) -> Result<usize>;
}

Required Methods§

Source

fn write_self<W: Write>(&self, out: W) -> Result<()>

Source

fn size(&self) -> Result<usize>

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.

Implementors§

Source§

impl<'a, T: WriteTo<Input<'a> = T>> WriteSelf for T