Skip to main content

Encodable

Trait Encodable 

Source
pub trait Encodable {
    // Required methods
    fn size(&self) -> usize;
    fn encode(&self) -> Buffer;
}

Required Methods§

Source

fn size(&self) -> usize

Source

fn encode(&self) -> Buffer

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§