pub struct Palette { /* private fields */ }
Implementations
sourceimpl Palette
impl Palette
pub fn always() -> Self
Available on crate feature
color
only.pub fn never() -> Self
pub fn auto() -> Self
pub fn info<D: Display>(self, item: D) -> Styled<D>
pub fn warn<D: Display>(self, item: D) -> Styled<D>
pub fn error<D: Display>(self, item: D) -> Styled<D>
pub fn hint<D: Display>(self, item: D) -> Styled<D>
pub fn expected<D: Display>(self, item: D) -> Styled<D>
pub fn actual<D: Display>(self, item: D) -> Styled<D>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnwindSafe for Palette
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more