pub struct FlagSelector {
pub command_path: &'static [&'static str],
pub long: &'static str,
}Expand description
Declarative selector for a long flag on a command path.
Fields§
§command_path: &'static [&'static str]Command path that owns the flag.
long: &'static strLong flag name without the leading --.
Implementations§
Source§impl FlagSelector
impl FlagSelector
Sourcepub const fn new(
command_path: &'static [&'static str],
long: &'static str,
) -> Self
pub const fn new( command_path: &'static [&'static str], long: &'static str, ) -> Self
Create a new FlagSelector.
Trait Implementations§
Source§impl Clone for FlagSelector
impl Clone for FlagSelector
Source§fn clone(&self) -> FlagSelector
fn clone(&self) -> FlagSelector
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 FlagSelector
impl Debug for FlagSelector
Source§impl PartialEq for FlagSelector
impl PartialEq for FlagSelector
impl Copy for FlagSelector
impl Eq for FlagSelector
impl StructuralPartialEq for FlagSelector
Auto Trait Implementations§
impl Freeze for FlagSelector
impl RefUnwindSafe for FlagSelector
impl Send for FlagSelector
impl Sync for FlagSelector
impl Unpin for FlagSelector
impl UnsafeUnpin for FlagSelector
impl UnwindSafe for FlagSelector
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