pub enum ParserEffectKind {
Warning,
Validation,
FailClosed,
Allow,
Fallback,
Sanitize,
Coercion,
}Expand description
Categories of effects that can occur during parsing operations.
Variants§
Warning
A recoverable warning was emitted.
Validation
Full validation was triggered.
FailClosed
Parser failed closed (non-recoverable).
Allow
Operation was allowed to proceed.
Fallback
A fallback strategy was used.
Sanitize
Input was sanitized or normalized.
Coercion
A type coercion occurred.
Implementations§
Source§impl ParserEffectKind
impl ParserEffectKind
Sourcepub const fn is_terminal(&self) -> bool
pub const fn is_terminal(&self) -> bool
Returns true if this effect indicates a terminal failure.
Sourcepub const fn is_recoverable(&self) -> bool
pub const fn is_recoverable(&self) -> bool
Returns true if this effect indicates a recoverable condition.
Trait Implementations§
Source§impl Clone for ParserEffectKind
impl Clone for ParserEffectKind
Source§fn clone(&self) -> ParserEffectKind
fn clone(&self) -> ParserEffectKind
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 moreimpl Copy for ParserEffectKind
Source§impl Debug for ParserEffectKind
impl Debug for ParserEffectKind
Source§impl<'de> Deserialize<'de> for ParserEffectKind
impl<'de> Deserialize<'de> for ParserEffectKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ParserEffectKind
Source§impl Hash for ParserEffectKind
impl Hash for ParserEffectKind
Source§impl PartialEq for ParserEffectKind
impl PartialEq for ParserEffectKind
Source§fn eq(&self, other: &ParserEffectKind) -> bool
fn eq(&self, other: &ParserEffectKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ParserEffectKind
impl Serialize for ParserEffectKind
impl StructuralPartialEq for ParserEffectKind
Auto Trait Implementations§
impl Freeze for ParserEffectKind
impl RefUnwindSafe for ParserEffectKind
impl Send for ParserEffectKind
impl Sync for ParserEffectKind
impl Unpin for ParserEffectKind
impl UnsafeUnpin for ParserEffectKind
impl UnwindSafe for ParserEffectKind
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