pub enum OptionSupport {
Unknown,
Supported,
Unsupported,
}Expand description
Knowledge of a program’s native support for an optional command-line option.
This is a declaration, not a guarantee of correct behavior or support for every possible option value. Hosts document how unknown and unsupported capabilities affect execution. Required options do not need capability flags.
Variants§
Unknown
No support information was supplied; this does not mean unsupported.
Supported
The program is declared to support this option natively.
Unsupported
The program is declared not to support this option natively. A host must emulate a requested operation or reject it rather than silently omit it.
Trait Implementations§
Source§impl Clone for OptionSupport
impl Clone for OptionSupport
impl Copy for OptionSupport
Source§impl Debug for OptionSupport
impl Debug for OptionSupport
Source§impl Default for OptionSupport
impl Default for OptionSupport
impl Eq for OptionSupport
Source§impl Hash for OptionSupport
impl Hash for OptionSupport
Source§impl Ord for OptionSupport
impl Ord for OptionSupport
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OptionSupport
impl PartialEq for OptionSupport
Source§impl PartialOrd for OptionSupport
impl PartialOrd for OptionSupport
impl StructuralPartialEq for OptionSupport
Auto Trait Implementations§
impl Freeze for OptionSupport
impl RefUnwindSafe for OptionSupport
impl Send for OptionSupport
impl Sync for OptionSupport
impl Unpin for OptionSupport
impl UnsafeUnpin for OptionSupport
impl UnwindSafe for OptionSupport
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