pub struct WitnessHash { /* private fields */ }Expand description
A 256-bit witness commitment hash.
Used to anchor state transitions in the RVM witness trail. This is
a fixed-size value type suitable for embedding in no_std contexts
without heap allocation.
Implementations§
Source§impl WitnessHash
impl WitnessHash
Sourcepub const fn from_bytes(bytes: [u8; 32]) -> Self
pub const fn from_bytes(bytes: [u8; 32]) -> Self
Create a witness hash from raw bytes.
Trait Implementations§
Source§impl Clone for WitnessHash
impl Clone for WitnessHash
Source§fn clone(&self) -> WitnessHash
fn clone(&self) -> WitnessHash
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WitnessHash
Source§impl Debug for WitnessHash
impl Debug for WitnessHash
Source§impl Display for WitnessHash
impl Display for WitnessHash
impl Eq for WitnessHash
Source§impl Hash for WitnessHash
impl Hash for WitnessHash
Source§impl PartialEq for WitnessHash
impl PartialEq for WitnessHash
impl StructuralPartialEq for WitnessHash
Auto Trait Implementations§
impl Freeze for WitnessHash
impl RefUnwindSafe for WitnessHash
impl Send for WitnessHash
impl Sync for WitnessHash
impl Unpin for WitnessHash
impl UnsafeUnpin for WitnessHash
impl UnwindSafe for WitnessHash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more