#[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
impl 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
impl StructuralPartialEq for ColorPolicy
Auto Trait Implementations§
impl Forget for ColorPolicy
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