Enum clap::builder::Resettable
source · pub enum Resettable<T> {
Value(T),
Reset,
}
Expand description
Clearable builder value
Variants§
Trait Implementations§
source§impl<T: Clone> Clone for Resettable<T>
impl<T: Clone> Clone for Resettable<T>
source§fn clone(&self) -> Resettable<T>
fn clone(&self) -> Resettable<T>
Returns a copy 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<T: Debug> Debug for Resettable<T>
impl<T: Debug> Debug for Resettable<T>
source§impl<T> From<Option<T>> for Resettable<T>
impl<T> From<Option<T>> for Resettable<T>
source§impl<T> From<T> for Resettable<T>
impl<T> From<T> for Resettable<T>
source§impl<T: Hash> Hash for Resettable<T>
impl<T: Hash> Hash for Resettable<T>
source§impl<T> IntoResettable<T> for Resettable<T>
impl<T> IntoResettable<T> for Resettable<T>
source§fn into_resettable(self) -> Resettable<T>
fn into_resettable(self) -> Resettable<T>
Convert to the intended resettable type
source§impl<T: Ord> Ord for Resettable<T>
impl<T: Ord> Ord for Resettable<T>
source§fn cmp(&self, other: &Resettable<T>) -> Ordering
fn cmp(&self, other: &Resettable<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq<Resettable<T>> for Resettable<T>
impl<T: PartialEq> PartialEq<Resettable<T>> for Resettable<T>
source§fn eq(&self, other: &Resettable<T>) -> bool
fn eq(&self, other: &Resettable<T>) -> bool
source§impl<T: PartialOrd> PartialOrd<Resettable<T>> for Resettable<T>
impl<T: PartialOrd> PartialOrd<Resettable<T>> for Resettable<T>
source§fn partial_cmp(&self, other: &Resettable<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Resettable<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for Resettable<T>
impl<T: Eq> Eq for Resettable<T>
impl<T> StructuralEq for Resettable<T>
impl<T> StructuralPartialEq for Resettable<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Resettable<T>where
T: RefUnwindSafe,
impl<T> Send for Resettable<T>where
T: Send,
impl<T> Sync for Resettable<T>where
T: Sync,
impl<T> Unpin for Resettable<T>where
T: Unpin,
impl<T> UnwindSafe for Resettable<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> FromFd for Twhere
T: From<OwnedFd>,
impl<T> FromFd for Twhere
T: From<OwnedFd>,
§impl<T> FromFilelike for Twhere
T: From<OwnedFd>,
impl<T> FromFilelike for Twhere
T: From<OwnedFd>,
§fn from_filelike(owned: OwnedFd) -> T
fn from_filelike(owned: OwnedFd) -> T
Constructs a new instance of
Self
from the given filelike object. Read more§fn from_into_filelike<Owned>(owned: Owned) -> Twhere
Owned: IntoFilelike,
fn from_into_filelike<Owned>(owned: Owned) -> Twhere
Owned: IntoFilelike,
Constructs a new instance of
Self
from the given filelike object
converted from into_owned
. Read more§impl<T> FromSocketlike for Twhere
T: From<OwnedFd>,
impl<T> FromSocketlike for Twhere
T: From<OwnedFd>,
§fn from_socketlike(owned: OwnedFd) -> T
fn from_socketlike(owned: OwnedFd) -> T
Constructs a new instance of
Self
from the given socketlike object.§fn from_into_socketlike<Owned>(owned: Owned) -> Twhere
Owned: IntoSocketlike,
fn from_into_socketlike<Owned>(owned: Owned) -> Twhere
Owned: IntoSocketlike,
Constructs a new instance of
Self
from the given socketlike object
converted from into_owned
. Read more