pub struct FlagTolerance {
pub unknown: UnknownTolerance,
pub numeric_dash: bool,
}Expand description
How the dispatcher treats tokens that look like flags but aren’t in the
allowlist. unknown controls flag-shaped unknowns; numeric_dash opts
into -NUMBER shorthand (e.g. head -20).
Fields§
§unknown: UnknownTolerance§numeric_dash: boolImplementations§
Source§impl FlagTolerance
impl FlagTolerance
Trait Implementations§
Source§impl Clone for FlagTolerance
impl Clone for FlagTolerance
Source§fn clone(&self) -> FlagTolerance
fn clone(&self) -> FlagTolerance
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 FlagTolerance
Source§impl Debug for FlagTolerance
impl Debug for FlagTolerance
Source§impl Default for FlagTolerance
impl Default for FlagTolerance
Source§fn default() -> FlagTolerance
fn default() -> FlagTolerance
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FlagTolerance
impl RefUnwindSafe for FlagTolerance
impl Send for FlagTolerance
impl Sync for FlagTolerance
impl Unpin for FlagTolerance
impl UnsafeUnpin for FlagTolerance
impl UnwindSafe for FlagTolerance
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