pub struct CommandShortOptionSpec { /* private fields */ }Expand description
Typed short-option metadata used by internal command normalization.
Public options are derived from the frozen list-commands signature. A
small internal supplement carries implemented tmux options that tmux itself
intentionally omits from list-commands.
Implementations§
Source§impl CommandShortOptionSpec
impl CommandShortOptionSpec
Sourcepub fn is_boolean(&self, flag: char) -> bool
pub fn is_boolean(&self, flag: char) -> bool
Returns whether flag is a boolean short option for the command.
Sourcepub fn takes_value(&self, flag: char) -> bool
pub fn takes_value(&self, flag: char) -> bool
Returns whether flag consumes a value for the command.
Trait Implementations§
Source§impl Clone for CommandShortOptionSpec
impl Clone for CommandShortOptionSpec
Source§fn clone(&self) -> CommandShortOptionSpec
fn clone(&self) -> CommandShortOptionSpec
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 moreSource§impl Debug for CommandShortOptionSpec
impl Debug for CommandShortOptionSpec
Source§impl Default for CommandShortOptionSpec
impl Default for CommandShortOptionSpec
Source§fn default() -> CommandShortOptionSpec
fn default() -> CommandShortOptionSpec
Returns the “default value” for a type. Read more
impl Eq for CommandShortOptionSpec
Source§impl PartialEq for CommandShortOptionSpec
impl PartialEq for CommandShortOptionSpec
impl StructuralPartialEq for CommandShortOptionSpec
Auto Trait Implementations§
impl Freeze for CommandShortOptionSpec
impl RefUnwindSafe for CommandShortOptionSpec
impl Send for CommandShortOptionSpec
impl Sync for CommandShortOptionSpec
impl Unpin for CommandShortOptionSpec
impl UnsafeUnpin for CommandShortOptionSpec
impl UnwindSafe for CommandShortOptionSpec
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