#[repr(u8)]pub enum ReasonCode {
Admissible = 0,
BoundaryApproach = 1,
SustainedOutwardDrift = 2,
AbruptSlewViolation = 3,
RecurrentBoundaryGrazing = 4,
EnvelopeViolation = 5,
DriftWithRecovery = 6,
SingleCrossing = 7,
}Expand description
Reason codes attached to a grammar transition. Carried into the
Episode so an operator audit can see why the grammar flagged a
cell, not just that it did.
Variants§
Admissible = 0
Sentinel: no reason because the cell is admissible.
BoundaryApproach = 1
Boundary entered because residual or drift is elevated.
SustainedOutwardDrift = 2
Drift sustained above the violation threshold for several windows.
AbruptSlewViolation = 3
Single-window slew shock.
RecurrentBoundaryGrazing = 4
Multiple boundary cells with no clear violation — graze.
EnvelopeViolation = 5
Envelope-magnitude violation (norm itself crossed the high band).
DriftWithRecovery = 6
Drift descending after a peak — recovery edge.
SingleCrossing = 7
One-shot boundary crossing that did not re-enter on the next cell.
Implementations§
Trait Implementations§
Source§impl Clone for ReasonCode
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
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 ReasonCode
impl Debug for ReasonCode
Source§impl Default for ReasonCode
impl Default for ReasonCode
Source§fn default() -> ReasonCode
fn default() -> ReasonCode
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReasonCode
impl PartialEq for ReasonCode
Source§fn eq(&self, other: &ReasonCode) -> bool
fn eq(&self, other: &ReasonCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ReasonCode
impl Eq for ReasonCode
impl StructuralPartialEq for ReasonCode
Auto Trait Implementations§
impl Freeze for ReasonCode
impl RefUnwindSafe for ReasonCode
impl Send for ReasonCode
impl Sync for ReasonCode
impl Unpin for ReasonCode
impl UnsafeUnpin for ReasonCode
impl UnwindSafe for ReasonCode
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