pub enum Control {
Continue,
Stop,
}Expand description
Flow control signal returned by handler methods.
Handlers return this to tell the parser whether to continue processing or stop early.
Variants§
Implementations§
Source§impl Control
impl Control
Sourcepub fn should_continue(&self) -> bool
pub fn should_continue(&self) -> bool
Returns true if this is Control::Continue.
Sourcepub fn should_stop(&self) -> bool
pub fn should_stop(&self) -> bool
Returns true if this is Control::Stop.
Trait Implementations§
impl Copy for Control
impl Eq for Control
impl StructuralPartialEq for Control
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnsafeUnpin for Control
impl UnwindSafe for Control
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