[][src]Struct palett::dye::DyeFactory

pub struct DyeFactory<T> where
    T: ?Sized
{ /* fields omitted */ }

Implementations

impl<T> DyeFactory<T> where
    T: ?Sized
[src]

pub fn build(
    color_to_ansi: fn(_: &T) -> String,
    effects: &[Effect]
) -> DyeFactory<T>
[src]

impl DyeFactory<RGB>[src]

pub fn rgb(effects: &[Effect]) -> Self[src]

impl DyeFactory<HSL>[src]

pub fn hsl(effects: &[Effect]) -> Self[src]

impl DyeFactory<HEX>[src]

pub fn hex(effects: &[Effect]) -> Self[src]

impl<T: ?Sized> DyeFactory<T>[src]

pub fn assign_effects(&mut self, effects: &[Effect]) -> &Self[src]

pub fn toning(&self, color: &T) -> (String, String)[src]

pub fn render(&self, color: &T, text: &str) -> String[src]

pub fn make(&self, color: &T) -> impl Fn(&str) -> String[src]

pub fn make_box(&self, color: &T) -> Box<dyn Fn(&str) -> String>[src]

Auto Trait Implementations

impl<T: ?Sized> RefUnwindSafe for DyeFactory<T>[src]

impl<T: ?Sized> Send for DyeFactory<T>[src]

impl<T: ?Sized> Sync for DyeFactory<T>[src]

impl<T: ?Sized> Unpin for DyeFactory<T>[src]

impl<T: ?Sized> UnwindSafe for DyeFactory<T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.