pub enum GuardResult {
Accept,
Reject,
HardError(String),
}Expand description
Result of a Guard checking if a given alternation should be taken or not.
Variants§
Accept
The alternation is chosen.
Reject
The alternation is rejected.
HardError(String)
The guard has preemptively decided the the parse is invalid at this state and position.
Auto Trait Implementations§
impl Freeze for GuardResult
impl RefUnwindSafe for GuardResult
impl Send for GuardResult
impl Sync for GuardResult
impl Unpin for GuardResult
impl UnwindSafe for GuardResult
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