Skip to main content

encode

Function encode 

Source
pub fn encode<T: RLPEncode>(value: T) -> Vec<u8>
Expand description

Function for encoding a value to RLP. For encoding the value into a buffer directly, use RLPEncode::encode.