Enum pretty_exec::clap::builder::Resettable
[−]pub enum Resettable<T> {
Value(T),
Reset,
}Expand description
Clearable builder value
Variants
Value(T)
Overwrite builder value
Reset
Reset builder value
Trait Implementations
impl<T> Clone for Resettable<T>where
T: Clone,
impl<T> Clone for Resettable<T>where
T: Clone,
fn clone(&self) -> Resettable<T>
fn clone(&self) -> Resettable<T>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T> Debug for Resettable<T>where
T: Debug,
impl<T> Debug for Resettable<T>where
T: Debug,
impl<T> From<Option<T>> for Resettable<T>
impl<T> From<Option<T>> for Resettable<T>
fn from(other: Option<T>) -> Resettable<T>
fn from(other: Option<T>) -> Resettable<T>
Converts to this type from the input type.
impl<T> From<T> for Resettable<T>
impl<T> From<T> for Resettable<T>
fn from(other: T) -> Resettable<T>
fn from(other: T) -> Resettable<T>
Converts to this type from the input type.
impl<T> Hash for Resettable<T>where
T: Hash,
impl<T> Hash for Resettable<T>where
T: Hash,
impl<T> IntoResettable<T> for Resettable<T>
impl<T> IntoResettable<T> for Resettable<T>
fn into_resettable(self) -> Resettable<T>
fn into_resettable(self) -> Resettable<T>
Convert to the intended resettable type
impl<T> Ord for Resettable<T>where
T: Ord,
impl<T> Ord for Resettable<T>where
T: Ord,
fn cmp(&self, other: &Resettable<T>) -> Ordering
fn cmp(&self, other: &Resettable<T>) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl<T> PartialEq<Resettable<T>> for Resettable<T>where
T: PartialEq<T>,
impl<T> PartialEq<Resettable<T>> for Resettable<T>where
T: PartialEq<T>,
fn eq(&self, other: &Resettable<T>) -> bool
fn eq(&self, other: &Resettable<T>) -> bool
impl<T> PartialOrd<Resettable<T>> for Resettable<T>where
T: PartialOrd<T>,
impl<T> PartialOrd<Resettable<T>> for Resettable<T>where
T: PartialOrd<T>,
fn partial_cmp(&self, other: &Resettable<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Resettable<T>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 for Resettable<T>where
T: Copy,
impl<T> Eq for Resettable<T>where
T: Eq,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<X> Pipe for X
impl<X> Pipe for X
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere
Self: AsRef<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere
Self: AsRef<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait AsRef<Param>. Read morefn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Self: AsMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Self: AsMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait AsMut<Param>. Read morefn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere
Self: Deref<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere
Self: Deref<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait Deref<Target = Param>. Read morefn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait [DerefMut<Target = Param>]. Read morefn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere
Self: Borrow<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere
Self: Borrow<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait Borrow<Param>. Read morefn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Returnwhere
Self: BorrowMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Returnwhere
Self: BorrowMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait BorrowMut<Param>. Read more