Trait rlp::rlptraits::ByteEncodable
[−]
[src]
pub trait ByteEncodable { fn to_bytes<V: VecLike<u8>>(&self, out: &mut V); fn bytes_len(&self) -> usize; }
Primitive data type encodable to RLP
Required Methods
fn to_bytes<V: VecLike<u8>>(&self, out: &mut V)
Serialize this object to given byte container
fn bytes_len(&self) -> usize
Get size of serialised data in bytes
Implementors
impl<T> ByteEncodable for T where T: ToBytes