Struct simplicity::node::Witness
source · pub struct Witness<J> { /* private fields */ }Trait Implementations§
source§impl<J: Jet> Marker for Witness<J>
impl<J: Jet> Marker for Witness<J>
§type CachedData = WitnessData<J>
type CachedData = WitnessData<J>
Precomputed data about the node, such as its type arrow or various Merkle roots.
§type Disconnect = Option<Arc<Node<Witness<J>>>>
type Disconnect = Option<Arc<Node<Witness<J>>>>
Type of disconnect data attached to DAGs of this node type.
§type SharingId = WitnessId
type SharingId = WitnessId
A type which uniquely identifies a node, for purposes of sharing
during iteration over the DAG.
source§fn compute_sharing_id(_: Cmr, _: &WitnessData<J>) -> Option<WitnessId>
fn compute_sharing_id(_: Cmr, _: &WitnessData<J>) -> Option<WitnessId>
Yields the sharing ID for a given type, starting from its CMR and its cached data. Read more
source§impl<J: Ord> Ord for Witness<J>
impl<J: Ord> Ord for Witness<J>
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<J: PartialEq> PartialEq for Witness<J>
impl<J: PartialEq> PartialEq for Witness<J>
source§impl<J: PartialOrd> PartialOrd for Witness<J>
impl<J: PartialOrd> PartialOrd for Witness<J>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<J: Copy> Copy for Witness<J>
impl<J: Eq> Eq for Witness<J>
impl<J> StructuralPartialEq for Witness<J>
Auto Trait Implementations§
impl<J> RefUnwindSafe for Witness<J>where
J: RefUnwindSafe,
impl<J> Send for Witness<J>where
J: Send,
impl<J> Sync for Witness<J>where
J: Sync,
impl<J> Unpin for Witness<J>where
J: Unpin,
impl<J> UnwindSafe for Witness<J>where
J: UnwindSafe,
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