#[non_exhaustive]pub enum ScalarTraceField {
LogProb,
Action,
DeltaAction,
ActionBefore,
ActionAfter,
}Expand description
Scalar trace field category used in checkpoint/result diagnostics.
§Examples
use causal_triangulations::prelude::errors::ScalarTraceField;
assert_eq!(ScalarTraceField::ActionBefore.to_string(), "action_before");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LogProb
Cached target log probability.
Action
Current action observable.
DeltaAction
Proposed or accepted action delta.
ActionBefore
Action before the proposed move.
ActionAfter
Action after an accepted move.
Trait Implementations§
Source§impl Clone for ScalarTraceField
impl Clone for ScalarTraceField
Source§fn clone(&self) -> ScalarTraceField
fn clone(&self) -> ScalarTraceField
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 ScalarTraceField
impl Debug for ScalarTraceField
Source§impl Display for ScalarTraceField
impl Display for ScalarTraceField
Source§impl Hash for ScalarTraceField
impl Hash for ScalarTraceField
Source§impl PartialEq for ScalarTraceField
impl PartialEq for ScalarTraceField
Source§fn eq(&self, other: &ScalarTraceField) -> bool
fn eq(&self, other: &ScalarTraceField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ScalarTraceField
impl Eq for ScalarTraceField
impl StructuralPartialEq for ScalarTraceField
Auto Trait Implementations§
impl Freeze for ScalarTraceField
impl RefUnwindSafe for ScalarTraceField
impl Send for ScalarTraceField
impl Sync for ScalarTraceField
impl Unpin for ScalarTraceField
impl UnsafeUnpin for ScalarTraceField
impl UnwindSafe for ScalarTraceField
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