Struct Id
pub struct Id(/* private field */);
[Arg][crate::Arg] or [ArgGroup][crate::ArgGroup] identifier
This is used for accessing the value in [ArgMatches][crate::ArgMatches] or defining
relationships between Args and ArgGroups with functions like
[Arg::conflicts_with][crate::Arg::conflicts_with].
Implementations
impl Id
fn as_str(&self) -> &strGet the raw string of the
Id
Trait Implementations
impl AsRef<str> for Id
fn as_ref(&self) -> &str
impl Borrow<str> for Id
fn borrow(&self) -> &str
impl Clone for Id
fn clone(&self) -> Self
impl Debug for Id
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Id
fn default() -> Self
impl Display for Id
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Id
impl From<&&'static str> for Id
fn from(name: &&'static str) -> Self
impl From<&'static str> for Id
fn from(name: &'static str) -> Self
impl From<&Id> for Id
fn from(id: &Id) -> Self
impl From<&Str> for Id
fn from(name: &Str) -> Self
impl From<Str> for Id
fn from(name: Str) -> Self
impl Hash for Id
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for Id
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for Id
fn eq(&self, other: &Self) -> bool
impl PartialEq<&str> for Id
fn eq(&self, other: &&str) -> bool
impl PartialEq<Str> for Id
fn eq(&self, other: &Str) -> bool
impl PartialEq<String> for Id
fn eq(&self, other: &String) -> bool
impl PartialEq<str> for Id
fn eq(&self, other: &str) -> bool
impl PartialOrd for Id
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl StructuralPartialEq for Id
Auto Trait Implementations
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnsafeUnpin for Id
impl UnwindSafe for Id
Blanket Implementations
impl<I> IntoResettable<Str> for Id
where
I: Into<Str>,
fn into_resettable(self) -> Resettable<Str>
impl<I> IntoResettable<String> for Id
where
I: Into<String>,
fn into_resettable(self) -> Resettable<String>
impl<T> Any for Id
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Id
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Id
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Id
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Id
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Id
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for Id
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for Id
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Id
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Id
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>