pub enum ShortOpt {
Codepoint(u32),
Byte(u8),
}
Expand description
Represents either a Unicode codepoint or an arbitrary byte. Used by
OsArgument
to represent short options.
Variants§
Codepoint(u32)
A Unicode codepoint. On Windows, short options will always be valid codepoints (but may be invalid characters, such as unpaired surrogates).
Byte(u8)
An arbitrary byte, which can happen if the OsStr
is invalid Unicode.
Windows always has valid codepoints, but this may be encountered on Unix
or Linux systems.
Trait Implementations§
impl Copy for ShortOpt
impl Eq for ShortOpt
impl StructuralPartialEq for ShortOpt
Auto Trait Implementations§
impl Freeze for ShortOpt
impl RefUnwindSafe for ShortOpt
impl Send for ShortOpt
impl Sync for ShortOpt
impl Unpin for ShortOpt
impl UnwindSafe for ShortOpt
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