#[repr(u8)]pub enum GrammarState {
Admissible = 0,
Boundary = 1,
Violation = 2,
Recovery = 3,
}Expand description
The grammar’s discrete states. Ordering is meaningful: higher values
indicate more severity, so a single max() over a window yields the
peak grammar state for an interval.
Variants§
Admissible = 0
Cell is within the deadband: no axis lit up.
Boundary = 1
One or more axes elevated but no single axis at violation level.
Violation = 2
At least one axis crossed the violation threshold; episode-eligible.
Recovery = 3
Drift descending while norm still above the recovery floor.
Trait Implementations§
Source§impl Clone for GrammarState
impl Clone for GrammarState
Source§fn clone(&self) -> GrammarState
fn clone(&self) -> GrammarState
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 GrammarState
impl Debug for GrammarState
Source§impl Default for GrammarState
impl Default for GrammarState
Source§fn default() -> GrammarState
fn default() -> GrammarState
Returns the “default value” for a type. Read more
Source§impl Ord for GrammarState
impl Ord for GrammarState
Source§fn cmp(&self, other: &GrammarState) -> Ordering
fn cmp(&self, other: &GrammarState) -> Ordering
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 PartialEq for GrammarState
impl PartialEq for GrammarState
Source§fn eq(&self, other: &GrammarState) -> bool
fn eq(&self, other: &GrammarState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GrammarState
impl PartialOrd for GrammarState
impl Copy for GrammarState
impl Eq for GrammarState
impl StructuralPartialEq for GrammarState
Auto Trait Implementations§
impl Freeze for GrammarState
impl RefUnwindSafe for GrammarState
impl Send for GrammarState
impl Sync for GrammarState
impl Unpin for GrammarState
impl UnsafeUnpin for GrammarState
impl UnwindSafe for GrammarState
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