pub struct Converging<T> { /* private fields */ }Expand description
The answer of a search: settled by a certificate, or provisional with its evidence.
Implementations§
Source§impl<T> Converging<T>
impl<T> Converging<T>
Sourcepub fn provisional(value: T, steps: u64, revisions: u64) -> Converging<T>
pub fn provisional(value: T, steps: u64, revisions: u64) -> Converging<T>
The current guess after steps cases, having changed revisions times, with no proof.
Sourcepub fn settled(value: T, certificate: &str) -> Converging<T>
pub fn settled(value: T, certificate: &str) -> Converging<T>
A value a certificate settles.
pub fn value(&self) -> &T
Sourcepub fn with_value<U>(&self, value: U) -> Converging<U>
pub fn with_value<U>(&self, value: U) -> Converging<U>
The same evidence for value.
pub fn steps(&self) -> u64
pub fn revisions(&self) -> u64
pub fn is_settled(&self) -> bool
pub fn certificate(&self) -> Option<&str>
Sourcepub fn joined<U, W>(&self, other: &Converging<U>, value: W) -> Converging<W>
pub fn joined<U, W>(&self, other: &Converging<U>, value: W) -> Converging<W>
The evidence of value, made from this answer and other: settled when both are (their
certificates joined), the other’s evidence when one is settled, and otherwise provisional on
the fewest cases either search checked with every revision either made.
Trait Implementations§
Source§impl<T: Clone> Clone for Converging<T>
impl<T: Clone> Clone for Converging<T>
Source§fn clone(&self) -> Converging<T>
fn clone(&self) -> Converging<T>
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<T: Debug> Debug for Converging<T>
impl<T: Debug> Debug for Converging<T>
Source§impl<T: Hash> Hash for Converging<T>
impl<T: Hash> Hash for Converging<T>
Source§impl<T: PartialEq> PartialEq for Converging<T>
impl<T: PartialEq> PartialEq for Converging<T>
impl<T: Eq> Eq for Converging<T>
impl<T> StructuralPartialEq for Converging<T>
Auto Trait Implementations§
impl<T> Freeze for Converging<T>where
T: Freeze,
impl<T> RefUnwindSafe for Converging<T>where
T: RefUnwindSafe,
impl<T> Send for Converging<T>where
T: Send,
impl<T> Sync for Converging<T>where
T: Sync,
impl<T> Unpin for Converging<T>where
T: Unpin,
impl<T> UnsafeUnpin for Converging<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Converging<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