pub enum StyleMode {
Auto,
Enable,
Disable,
}Expand description
Whether to enable or disable styling.
Variants§
Auto
Auto-detect whether styling is supported.
- In an
stdenvironment, this check theTERMandNO_COLORenvironment variables. - Otherwise, this defaults to
true.
Enable
Enable styling.
Disable
Disable styling.
Trait Implementations§
source§impl Ord for StyleMode
impl Ord for StyleMode
source§impl PartialOrd for StyleMode
impl PartialOrd for StyleMode
impl Copy for StyleMode
impl Eq for StyleMode
impl StructuralPartialEq for StyleMode
Auto Trait Implementations§
impl Freeze for StyleMode
impl RefUnwindSafe for StyleMode
impl Send for StyleMode
impl Sync for StyleMode
impl Unpin for StyleMode
impl UnwindSafe for StyleMode
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)