pub struct FlagSelector { /* private fields */ }Expand description
Declarative selector for a long flag on a command path.
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.
Sourcepub const fn command_path(&self) -> &'static [&'static str]
pub const fn command_path(&self) -> &'static [&'static str]
Return the command path that owns this flag.
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 (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 FlagSelector
Source§impl Debug for FlagSelector
impl Debug for FlagSelector
impl Eq for FlagSelector
Source§impl PartialEq for FlagSelector
impl PartialEq for FlagSelector
Source§fn eq(&self, other: &FlagSelector) -> bool
fn eq(&self, other: &FlagSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.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