pub struct Color { /* private fields */ }
Implementationsยง
Sourceยงimpl Color
impl Color
pub fn auto() -> Self
pub fn always() -> Self
pub fn never() -> Self
pub fn stderr(self) -> Self
pub fn stdout(self) -> Self
pub fn context(self) -> Self
pub fn doc(self) -> Self
pub fn doc_backtick(self) -> Self
pub fn error(self) -> Self
pub fn group(self) -> Self
pub fn warning(self) -> Self
pub fn command(self, foreground: Option<Color>) -> Self
pub fn parameter(self) -> Self
pub fn message(self) -> Self
pub fn annotation(self) -> Self
pub fn string(self) -> Self
pub fn diff_added(self) -> Self
pub fn diff_deleted(self) -> Self
pub fn active(&self) -> bool
pub fn paint<'a>(&self, text: &'a str) -> ANSIGenericString<'a, str>
pub fn prefix(&self) -> Prefix
pub fn suffix(&self) -> Suffix
Trait Implementationsยง
impl Copy for Color
impl StructuralPartialEq for Color
Auto Trait Implementationsยง
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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