pub struct ColorOptions {
pub enabled: bool,
pub use_background: bool,
pub use_bright: bool,
}
Expand description
Colorization options for terminal output
Fields§
§enabled: bool
Whether to use colors
use_background: bool
Whether to use background colors
use_bright: bool
Whether to use bright colors
Trait Implementations§
Source§impl Clone for ColorOptions
impl Clone for ColorOptions
Source§fn clone(&self) -> ColorOptions
fn clone(&self) -> ColorOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ColorOptions
impl Debug for ColorOptions
Source§impl Default for ColorOptions
impl Default for ColorOptions
impl Copy for ColorOptions
Auto Trait Implementations§
impl Freeze for ColorOptions
impl RefUnwindSafe for ColorOptions
impl Send for ColorOptions
impl Sync for ColorOptions
impl Unpin for ColorOptions
impl UnwindSafe for ColorOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more