pub enum ProcessCode {
Continue,
Break,
ToggleParsingMode,
}Expand description
Option process codes returned by the option handler opt_h().
Variants§
Continue
Continue the parsing process in the current parsing mode.
Break
Break further parsing with success.
ToggleParsingMode
Switch the parser between values-parsing-mode and options-parsing-mode
then continue the parsing process. The activated mode is valid until
ToggleParsingMode is returned by the handler or end of options
is reached.
-
options-parsing-mode - the parser recognizes options along with their values and passes them to the handler. This is the default parsing mode.
-
values-parsing-mode - the parser treats all parsed tokens as values (independent tokens) and passes them to the handler with option argument set as
None.
Trait Implementations§
Source§impl Clone for ProcessCode
impl Clone for ProcessCode
Source§fn clone(&self) -> ProcessCode
fn clone(&self) -> ProcessCode
Returns a duplicate of the value. Read more
1.0.0 · 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 ProcessCode
impl Debug for ProcessCode
Source§impl PartialEq for ProcessCode
impl PartialEq for ProcessCode
impl Copy for ProcessCode
impl StructuralPartialEq for ProcessCode
Auto Trait Implementations§
impl Freeze for ProcessCode
impl RefUnwindSafe for ProcessCode
impl Send for ProcessCode
impl Sync for ProcessCode
impl Unpin for ProcessCode
impl UnwindSafe for ProcessCode
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