Enum WriteStyle
pub enum WriteStyle
Whether or not to print styles to the target.
Variants
-
Auto Try to print styles, but don't force the issue.
-
Always Try very hard to print styles.
-
Never Never print styles.
Trait Implementations
impl Clone for WriteStyle
fn clone(&self) -> WriteStyle
impl Copy for WriteStyle
impl Debug for WriteStyle
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for WriteStyle
fn default() -> WriteStyle
impl Eq for WriteStyle
impl From<ColorChoice> for WriteStyle
fn from(choice: ColorChoice) -> Self
impl Hash for WriteStyle
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for WriteStyle
fn eq(&self, other: &WriteStyle) -> bool
impl StructuralPartialEq for WriteStyle
Auto Trait Implementations
impl Freeze for WriteStyle
impl RefUnwindSafe for WriteStyle
impl Send for WriteStyle
impl Sync for WriteStyle
impl Unpin for WriteStyle
impl UnsafeUnpin for WriteStyle
impl UnwindSafe for WriteStyle
Blanket Implementations
impl<T> Any for WriteStyle
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for WriteStyle
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for WriteStyle
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for WriteStyle
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for WriteStyle
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for WriteStyle
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for WriteStyle
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for WriteStyle
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for WriteStyle
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>