pub enum ColorOption {
ALWAYS,
NEVER,
AUTO,
}Expand description
The supported arguments to the color option
You can turn a string into a ColorOption using ColorOption::from_string.
Variants§
Implementations§
Source§impl ColorOption
impl ColorOption
Sourcepub fn from_string(color_option_string: &str) -> Result<ColorOption, String>
pub fn from_string(color_option_string: &str) -> Result<ColorOption, String>
Convert string to ColorOption
Trait Implementations§
Source§impl Clone for ColorOption
impl Clone for ColorOption
Source§fn clone(&self) -> ColorOption
fn clone(&self) -> ColorOption
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ColorOption
impl RefUnwindSafe for ColorOption
impl Send for ColorOption
impl Sync for ColorOption
impl Unpin for ColorOption
impl UnsafeUnpin for ColorOption
impl UnwindSafe for ColorOption
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