pub struct TransformWinnerEqualityWitnessV0 {
pub winner: CascadeDeclaration,
pub proof: CascadeProof,
}Expand description
A definite winner and the proof emitted by the cascade authority.
Keeping the authority-owned types here prevents transform code from reconstructing winner order or proof fields independently.
Fields§
§winner: CascadeDeclaration§proof: CascadeProofImplementations§
Source§impl TransformWinnerEqualityWitnessV0
impl TransformWinnerEqualityWitnessV0
pub fn from_cascade_outcome(outcome: &CascadeOutcome) -> Option<Self>
Trait Implementations§
Source§impl Clone for TransformWinnerEqualityWitnessV0
impl Clone for TransformWinnerEqualityWitnessV0
Source§fn clone(&self) -> TransformWinnerEqualityWitnessV0
fn clone(&self) -> TransformWinnerEqualityWitnessV0
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 Eq for TransformWinnerEqualityWitnessV0
impl StructuralPartialEq for TransformWinnerEqualityWitnessV0
Auto Trait Implementations§
impl Freeze for TransformWinnerEqualityWitnessV0
impl RefUnwindSafe for TransformWinnerEqualityWitnessV0
impl Send for TransformWinnerEqualityWitnessV0
impl Sync for TransformWinnerEqualityWitnessV0
impl Unpin for TransformWinnerEqualityWitnessV0
impl UnsafeUnpin for TransformWinnerEqualityWitnessV0
impl UnwindSafe for TransformWinnerEqualityWitnessV0
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.