Trait Encodable
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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so 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,
Note: This will fail to compile on old Rust for targets that don’t support atomics
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