pub struct DataflowEvidence<T> {
pub value: T,
pub soundness: Soundness,
}Expand description
Dataflow result paired with the soundness regime under which it was derived.
Fields§
§value: TDecoded dataflow payload.
soundness: SoundnessSoundness regime for value.
Implementations§
Source§impl<T> DataflowEvidence<T>
impl<T> DataflowEvidence<T>
Sourcepub const fn new(value: T, soundness: Soundness) -> Self
pub const fn new(value: T, soundness: Soundness) -> Self
Attach a soundness regime to decoded dataflow evidence.
Sourcepub fn map<U>(self, transform: impl FnOnce(T) -> U) -> DataflowEvidence<U>
pub fn map<U>(self, transform: impl FnOnce(T) -> U) -> DataflowEvidence<U>
Transform the payload while preserving the soundness regime.
Sourcepub fn as_ref(&self) -> DataflowEvidence<&T>
pub fn as_ref(&self) -> DataflowEvidence<&T>
Borrow the payload without dropping the soundness tag.
Trait Implementations§
Source§impl<T: Clone> Clone for DataflowEvidence<T>
impl<T: Clone> Clone for DataflowEvidence<T>
Source§fn clone(&self) -> DataflowEvidence<T>
fn clone(&self) -> DataflowEvidence<T>
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 moreSource§impl<T: Debug> Debug for DataflowEvidence<T>
impl<T: Debug> Debug for DataflowEvidence<T>
impl<T: Eq> Eq for DataflowEvidence<T>
Source§impl<T: Ord> Ord for DataflowEvidence<T>
impl<T: Ord> Ord for DataflowEvidence<T>
1.21.0 (const: unstable) · 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<T: PartialEq> PartialEq for DataflowEvidence<T>
impl<T: PartialEq> PartialEq for DataflowEvidence<T>
Source§impl<T: PartialOrd> PartialOrd for DataflowEvidence<T>
impl<T: PartialOrd> PartialOrd for DataflowEvidence<T>
impl<T: PartialEq> StructuralPartialEq for DataflowEvidence<T>
Auto Trait Implementations§
impl<T> Freeze for DataflowEvidence<T>where
T: Freeze,
impl<T> RefUnwindSafe for DataflowEvidence<T>where
T: RefUnwindSafe,
impl<T> Send for DataflowEvidence<T>where
T: Send,
impl<T> Sync for DataflowEvidence<T>where
T: Sync,
impl<T> Unpin for DataflowEvidence<T>where
T: Unpin,
impl<T> UnsafeUnpin for DataflowEvidence<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for DataflowEvidence<T>where
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.