pub trait Encodable {
// Required method
fn encode(&self, out: &mut dyn BufMut);
// Provided method
fn length(&self) -> usize { ... }
}Available on crate feature
rlp only.Expand description
A type that can be encoded via RLP.
Required Methods§
Provided Methods§
Implementations on Foreign Types§
Source§impl Encodable for PhantomPinned
impl Encodable for PhantomPinned
Source§impl<T> Encodable for PhantomData<T>where
T: ?Sized,
impl<T> Encodable for PhantomData<T>where
T: ?Sized,
Implementors§
impl Encodable for Parity
impl Encodable for TxKind
impl Encodable for Address
impl Encodable for Bloom
impl Encodable for alloy_core::primitives::Bytes
impl Encodable for Function
impl Encodable for Log
impl Encodable for Signature
impl Encodable for alloy_core::rlp::Bytes
impl Encodable for BytesMut
impl<T> Encodable for Log<T>
impl<const BITS: usize, const LIMBS: usize> Encodable for Uint<BITS, LIMBS>
Allows a Uint to be serialized as RLP.