pub trait Encodable {
// Required method
fn consensus_encode<W>(&self, writer: &mut W) -> Result<usize, Error>
where W: Write + ?Sized;
}
Expand description
Data which can be encoded in a consensus-consistent way.
Required Methods§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
§impl<T0, T1, T2> Encodable for (T0, T1, T2)
impl<T0, T1, T2> Encodable for (T0, T1, T2)
§impl<T0, T1, T2, T3> Encodable for (T0, T1, T2, T3)
impl<T0, T1, T2, T3> Encodable for (T0, T1, T2, T3)
§impl<T0, T1, T2, T3, T4> Encodable for (T0, T1, T2, T3, T4)
impl<T0, T1, T2, T3, T4> Encodable for (T0, T1, T2, T3, T4)
§impl<T0, T1, T2, T3, T4, T5> Encodable for (T0, T1, T2, T3, T4, T5)
impl<T0, T1, T2, T3, T4, T5> Encodable for (T0, T1, T2, T3, T4, T5)
§impl<T0, T1, T2, T3, T4, T5, T6> Encodable for (T0, T1, T2, T3, T4, T5, T6)
impl<T0, T1, T2, T3, T4, T5, T6> Encodable for (T0, T1, T2, T3, T4, T5, T6)
§impl<T0, T1, T2, T3, T4, T5, T6, T7> Encodable for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<T0, T1, T2, T3, T4, T5, T6, T7> Encodable for (T0, T1, T2, T3, T4, T5, T6, T7)
§impl<T> Encodable for Arc<T>where
T: Encodable,
impl<T> Encodable for Arc<T>where
T: Encodable,
Note: This will fail to compile on old Rust for targets that don’t support atomics