pub struct VirtualStateApproxId { /* private fields */ }Expand description
An opaque data structure representing a unique approximate identifier for virtual state. Note that it is approximate in the sense that in rare cases a slightly different virtual state might produce the same identifier, hence it should be used for cache-like heuristics only
Implementations§
Source§impl VirtualStateApproxId
impl VirtualStateApproxId
pub fn new(daa_score: u64, blue_work: BlueWorkType, sink: Hash) -> Self
Trait Implementations§
Source§impl PartialEq for VirtualStateApproxId
impl PartialEq for VirtualStateApproxId
impl StructuralPartialEq for VirtualStateApproxId
Auto Trait Implementations§
impl Freeze for VirtualStateApproxId
impl RefUnwindSafe for VirtualStateApproxId
impl Send for VirtualStateApproxId
impl Sync for VirtualStateApproxId
impl Unpin for VirtualStateApproxId
impl UnwindSafe for VirtualStateApproxId
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more