pub trait Encodable {
    // Required method
    fn encode(&self, out: &mut dyn BufMut);

    // Provided method
    fn length(&self) -> usize { ... }
}

Required Methods§

source

fn encode(&self, out: &mut dyn BufMut)

Provided Methods§

source

fn length(&self) -> usize

Implementations on Foreign Types§

source§

impl Encodable for bool

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for u8

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for u16

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for u32

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for u64

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for u128

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for usize

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for String

source§

fn encode(&self, out: &mut dyn BufMut)

source§

fn length(&self) -> usize

source§

impl Encodable for H64

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for H520

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for U64

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for Bloom

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for H128

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for H160

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for H256

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for H512

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for U128

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl Encodable for U512

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl<'a> Encodable for &'a [u8]

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl<'a, T> Encodable for &'a T
where T: 'a + Encodable + ?Sized,

source§

fn encode(&self, out: &mut dyn BufMut)

source§

fn length(&self) -> usize

source§

impl<T> Encodable for Box<T>
where T: Encodable + ?Sized,

source§

fn encode(&self, out: &mut dyn BufMut)

source§

fn length(&self) -> usize

source§

impl<T> Encodable for Arc<T>
where T: Encodable + ?Sized,

source§

fn encode(&self, out: &mut dyn BufMut)

source§

fn length(&self) -> usize

source§

impl<T> Encodable for Vec<T>
where T: Encodable,

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

source§

impl<const LEN: usize> Encodable for [u8; LEN]

source§

fn length(&self) -> usize

source§

fn encode(&self, out: &mut dyn BufMut)

Implementors§