Enum PriorityLiteral
pub enum PriorityLiteral {
Auto,
Normal,
Invert,
}Expand description
Lark’s priority= literal ('auto' | 'normal' | 'invert') — Rust None
(absence) maps to Lark’s priority=None. Only
Self::Invert and Rust None trigger the pre-serialize negate/strip;
Auto/Normal are the Earley-runtime knob, no-ops at compile time.
Variants§
Trait Implementations§
§impl Clone for PriorityLiteral
impl Clone for PriorityLiteral
impl Copy for PriorityLiteral
§impl Debug for PriorityLiteral
impl Debug for PriorityLiteral
impl Eq for PriorityLiteral
§impl PartialEq for PriorityLiteral
impl PartialEq for PriorityLiteral
impl StructuralPartialEq for PriorityLiteral
Auto Trait Implementations§
impl Freeze for PriorityLiteral
impl RefUnwindSafe for PriorityLiteral
impl Send for PriorityLiteral
impl Sync for PriorityLiteral
impl Unpin for PriorityLiteral
impl UnsafeUnpin for PriorityLiteral
impl UnwindSafe for PriorityLiteral
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