pub struct MastNodeFingerprint { /* private fields */ }Expand description
Represents the hash used to test for equality between crate::mast::MastNodes.
The decorator root will be None if and only if there are no decorators attached to the node,
and all children have no decorator roots (meaning that there are no decorators in all the
descendants).
Implementations§
Source§impl MastNodeFingerprint
Constructors
impl MastNodeFingerprint
Constructors
Sourcepub fn new(mast_root: Word) -> Self
pub fn new(mast_root: Word) -> Self
Creates a new MastNodeFingerprint from the given MAST root with an empty decorator root.
Sourcepub fn with_decorator_root(
mast_root: Word,
decorator_root: DecoratorFingerprint,
) -> Self
pub fn with_decorator_root( mast_root: Word, decorator_root: DecoratorFingerprint, ) -> Self
Creates a new MastNodeFingerprint from the given MAST root and the given
DecoratorFingerprint.
Trait Implementations§
Source§impl Clone for MastNodeFingerprint
impl Clone for MastNodeFingerprint
Source§fn clone(&self) -> MastNodeFingerprint
fn clone(&self) -> MastNodeFingerprint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MastNodeFingerprint
impl Debug for MastNodeFingerprint
Source§impl Ord for MastNodeFingerprint
impl Ord for MastNodeFingerprint
Source§fn cmp(&self, other: &MastNodeFingerprint) -> Ordering
fn cmp(&self, other: &MastNodeFingerprint) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MastNodeFingerprint
impl PartialEq for MastNodeFingerprint
Source§impl PartialOrd for MastNodeFingerprint
impl PartialOrd for MastNodeFingerprint
impl Copy for MastNodeFingerprint
impl Eq for MastNodeFingerprint
impl StructuralPartialEq for MastNodeFingerprint
Auto Trait Implementations§
impl Freeze for MastNodeFingerprint
impl RefUnwindSafe for MastNodeFingerprint
impl Send for MastNodeFingerprint
impl Sync for MastNodeFingerprint
impl Unpin for MastNodeFingerprint
impl UnwindSafe for MastNodeFingerprint
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