[][src]Trait srlp::Encodable

pub trait Encodable {
    fn srlp_append(&self, s: &mut RlpStream);

    fn srlp_bytes(&self) -> Vec<u8> { ... }
}

Structure encodable to RLP

Required methods

fn srlp_append(&self, s: &mut RlpStream)

Append a value to the stream

Loading content...

Provided methods

fn srlp_bytes(&self) -> Vec<u8>

Get srlp-encoded bytes for this instance

Loading content...

Implementations on Foreign Types

impl Encodable for bool[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

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

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for Vec<u8>[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl<T> Encodable for Option<T> where
    T: Encodable
[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for u8[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for u16[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for u32[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for u64[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for usize[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for H64[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for H128[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for H160[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for H256[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for H512[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for H520[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for Bloom[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for U256[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for U128[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl<'a> Encodable for &'a str[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

impl Encodable for String[src]

fn srlp_bytes(&self) -> Vec<u8>[src]

Loading content...

Implementors

Loading content...