Skip to main content

TryIntoRlpEncodable

Trait TryIntoRlpEncodable 

Source
pub trait TryIntoRlpEncodable {
    // Required method
    fn try_rlp_encode(&self) -> Result<Vec<u8>>;
}
Expand description

Trait for types that can be RLP-encoded, possibly after a fallible conversion.

Types that directly implement [Encodable] can opt in via RlpEncodable to get a blanket implementation. Types like [AnyHeader] that require conversion provide their own implementation.

Required Methods§

Implementations on Foreign Types§

Source§

impl TryIntoRlpEncodable for AnyHeader

Implementors§