#[non_exhaustive]pub enum ColorPolicy {
Always,
Never,
Debug,
Auto,
}Expand description
Color rendering policy passed to jj --color.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Always
Always render color.
Never
Never render color.
Debug
Render color for debugging.
Auto
Let jj choose automatically.
Trait Implementations§
Source§impl Clone for ColorPolicy
impl Clone for ColorPolicy
Source§fn clone(&self) -> ColorPolicy
fn clone(&self) -> ColorPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColorPolicy
Source§impl Debug for ColorPolicy
impl Debug for ColorPolicy
impl Eq for ColorPolicy
Source§impl PartialEq for ColorPolicy
impl PartialEq for ColorPolicy
Source§fn eq(&self, other: &ColorPolicy) -> bool
fn eq(&self, other: &ColorPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColorPolicy
Auto Trait Implementations§
impl Freeze for ColorPolicy
impl RefUnwindSafe for ColorPolicy
impl Send for ColorPolicy
impl Sync for ColorPolicy
impl Unpin for ColorPolicy
impl UnsafeUnpin for ColorPolicy
impl UnwindSafe for ColorPolicy
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