pub struct Palette { /* private fields */ }
Implementations
sourceimpl Palette
impl Palette
pub fn always() -> Self
This is supported 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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more