pub struct ChoicePoint {
pub kind: ChoiceKind,
pub options: usize,
pub chosen: usize,
}Expand description
One recorded nondeterministic decision: its kind, how many options were
available, and which index was taken. This shape is intentionally
id-agnostic, so the trace format does not depend on TaskId/ChanId/etc.
Fields§
§kind: ChoiceKindWhat kind of decision this was.
options: usizeThe number of options that were available.
chosen: usizeThe index chosen, in [0, options).
Trait Implementations§
Source§impl Clone for ChoicePoint
impl Clone for ChoicePoint
Source§fn clone(&self) -> ChoicePoint
fn clone(&self) -> ChoicePoint
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 Debug for ChoicePoint
impl Debug for ChoicePoint
Source§impl PartialEq for ChoicePoint
impl PartialEq for ChoicePoint
Source§fn eq(&self, other: &ChoicePoint) -> bool
fn eq(&self, other: &ChoicePoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ChoicePoint
impl Eq for ChoicePoint
impl StructuralPartialEq for ChoicePoint
Auto Trait Implementations§
impl Freeze for ChoicePoint
impl RefUnwindSafe for ChoicePoint
impl Send for ChoicePoint
impl Sync for ChoicePoint
impl Unpin for ChoicePoint
impl UnsafeUnpin for ChoicePoint
impl UnwindSafe for ChoicePoint
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