Expand description
A commit.
Fields
height: u64
Height of the commit.
content: T
Commit content.
proof: Proof
The consensus proof.
Trait Implementations
sourceimpl<T: Codec> Decodable for Commit<T>
impl<T: Codec> Decodable for Commit<T>
sourcefn decode(r: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(r: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
impl<T: Eq + Codec> Eq for Commit<T>
impl<T: Codec> StructuralEq for Commit<T>
impl<T: Codec> StructuralPartialEq for Commit<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Commit<T> where
T: RefUnwindSafe,
impl<T> Send for Commit<T>
impl<T> Sync for Commit<T> where
T: Sync,
impl<T> Unpin for Commit<T> where
T: Unpin,
impl<T> UnwindSafe for Commit<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more