Enum concolor_clap::ColorChoice
source · [−]pub enum ColorChoice {
Auto,
Always,
Never,
}
Expand description
Argument value for when to color output
Variants
Auto
Always
Never
Implementations
sourceimpl ColorChoice
impl ColorChoice
sourcepub fn possible_values() -> impl Iterator<Item = PossibleValue<'static>>
pub fn possible_values() -> impl Iterator<Item = PossibleValue<'static>>
Report all possible_values
Trait Implementations
sourceimpl ArgEnum for ColorChoice
impl ArgEnum for ColorChoice
sourcefn value_variants<'a>() -> &'a [Self]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
fn value_variants<'a>() -> &'a [Self]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
All possible argument values, in display order.
sourcefn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>
fn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>
The canonical argument value. Read more
sourceimpl Clone for ColorChoice
impl Clone for ColorChoice
sourcefn clone(&self) -> ColorChoice
fn clone(&self) -> ColorChoice
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ColorChoice
impl Debug for ColorChoice
sourceimpl Default for ColorChoice
impl Default for ColorChoice
sourceimpl Display for ColorChoice
impl Display for ColorChoice
sourceimpl FromStr for ColorChoice
impl FromStr for ColorChoice
sourceimpl PartialEq<ColorChoice> for ColorChoice
impl PartialEq<ColorChoice> for ColorChoice
impl Copy for ColorChoice
impl Eq for ColorChoice
impl StructuralEq for ColorChoice
impl StructuralPartialEq for ColorChoice
Auto Trait Implementations
impl RefUnwindSafe for ColorChoice
impl Send for ColorChoice
impl Sync for ColorChoice
impl Unpin for ColorChoice
impl UnwindSafe for ColorChoice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more