[−][src]Struct owo_colors::TtyDisplay
A display which applies a transformation based on if the given stream is a tty
Trait Implementations
impl<'a, Tty: IsTty, In: Binary, Out: Binary, F: Fn(&'a In) -> Out> Binary for TtyDisplay<'a, Tty, In, Out, F>
[src]
impl<'a, Tty: IsTty, In: Debug, Out: Debug, F: Fn(&'a In) -> Out> Debug for TtyDisplay<'a, Tty, In, Out, F>
[src]
impl<'a, Tty: IsTty, In: Display, Out: Display, F: Fn(&'a In) -> Out> Display for TtyDisplay<'a, Tty, In, Out, F>
[src]
impl<'a, Tty: IsTty, In: LowerExp, Out: LowerExp, F: Fn(&'a In) -> Out> LowerExp for TtyDisplay<'a, Tty, In, Out, F>
[src]
impl<'a, Tty: IsTty, In: LowerHex, Out: LowerHex, F: Fn(&'a In) -> Out> LowerHex for TtyDisplay<'a, Tty, In, Out, F>
[src]
impl<'a, Tty: IsTty, In: Octal, Out: Octal, F: Fn(&'a In) -> Out> Octal for TtyDisplay<'a, Tty, In, Out, F>
[src]
impl<'a, Tty: IsTty, In: Pointer, Out: Pointer, F: Fn(&'a In) -> Out> Pointer for TtyDisplay<'a, Tty, In, Out, F>
[src]
impl<'a, Tty: IsTty, In: UpperExp, Out: UpperExp, F: Fn(&'a In) -> Out> UpperExp for TtyDisplay<'a, Tty, In, Out, F>
[src]
impl<'a, Tty: IsTty, In: UpperHex, Out: UpperHex, F: Fn(&'a In) -> Out> UpperHex for TtyDisplay<'a, Tty, In, Out, F>
[src]
Auto Trait Implementations
impl<'a, Tty, InVal: ?Sized, Out, ApplyFn> Send for TtyDisplay<'a, Tty, InVal, Out, ApplyFn> where
ApplyFn: Send,
InVal: Sync,
Tty: Send,
[src]
ApplyFn: Send,
InVal: Sync,
Tty: Send,
impl<'a, Tty, InVal: ?Sized, Out, ApplyFn> Sync for TtyDisplay<'a, Tty, InVal, Out, ApplyFn> where
ApplyFn: Sync,
InVal: Sync,
Tty: Sync,
[src]
ApplyFn: Sync,
InVal: Sync,
Tty: Sync,
impl<'a, Tty, InVal: ?Sized, Out, ApplyFn> Unpin for TtyDisplay<'a, Tty, InVal, Out, ApplyFn> where
ApplyFn: Unpin,
Tty: Unpin,
[src]
ApplyFn: Unpin,
Tty: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<D> OwoColorize for D
[src]
fn fg<'a, C: Color>(&'a self) -> FgColorDisplay<'a, C, Self>
[src]
fn bg<'a, C: Color>(&'a self) -> BgColorDisplay<'a, C, Self>
[src]
fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>
[src]
fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>
[src]
fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>
[src]
fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>
[src]
fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>
[src]
fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>
[src]
fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>
[src]
fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
[src]
fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>
[src]
fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>
[src]
fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
[src]
fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
[src]
fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
[src]
fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
[src]
fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>
[src]
fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>
[src]
fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>
[src]
fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>
[src]
fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
[src]
fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
[src]
fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
[src]
fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
[src]
fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
[src]
fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
[src]
fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
[src]
fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
[src]
fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
[src]
fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
[src]
fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
[src]
fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
[src]
fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
[src]
fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
[src]
fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
[src]
fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
[src]
fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
[src]
fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
[src]
fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>
[src]
fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>
[src]
fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>
[src]
fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>
[src]
fn blink<'a>(&'a self) -> BlinkDisplay<'a, Self>
[src]
fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
[src]
fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>
[src]
fn hidden<'a>(&'a self) -> HiddenDisplay<'a, Self>
[src]
fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
[src]
fn color<'a, Color: DynColor>(
&'a self,
color: Color
) -> FgDynColorDisplay<'a, Color, Self>
[src]
&'a self,
color: Color
) -> FgDynColorDisplay<'a, Color, Self>
fn on_color<'a, Color: DynColor>(
&'a self,
color: Color
) -> BgDynColorDisplay<'a, Color, Self>
[src]
&'a self,
color: Color
) -> BgDynColorDisplay<'a, Color, Self>
fn fg_rgb<'a, const R: u8, const G: u8, const B: u8>(
&'a self
) -> FgColorDisplay<'a, CustomColor<R, G, B>, Self>
[src]
&'a self
) -> FgColorDisplay<'a, CustomColor<R, G, B>, Self>
fn bg_rgb<'a, const R: u8, const G: u8, const B: u8>(
&'a self
) -> BgColorDisplay<'a, CustomColor<R, G, B>, Self>
[src]
&'a self
) -> BgColorDisplay<'a, CustomColor<R, G, B>, Self>
fn truecolor<'a>(
&'a self,
r: u8,
g: u8,
b: u8
) -> FgDynColorDisplay<'a, Rgb, Self>
[src]
&'a self,
r: u8,
g: u8,
b: u8
) -> FgDynColorDisplay<'a, Rgb, Self>
fn on_truecolor<'a>(
&'a self,
r: u8,
g: u8,
b: u8
) -> BgDynColorDisplay<'a, Rgb, Self>
[src]
&'a self,
r: u8,
g: u8,
b: u8
) -> BgDynColorDisplay<'a, Rgb, Self>
fn style(&self, style: Style) -> Styled<&Self>
[src]
fn if_stdout_tty<'a, Out, ApplyFn>(
&'a self,
apply: ApplyFn
) -> TtyDisplay<'a, StdOut, Self, Out, ApplyFn> where
ApplyFn: Fn(&'a Self) -> Out,
[src]
&'a self,
apply: ApplyFn
) -> TtyDisplay<'a, StdOut, Self, Out, ApplyFn> where
ApplyFn: Fn(&'a Self) -> Out,
fn if_stderr_tty<'a, Out, ApplyFn>(
&'a self,
apply: ApplyFn
) -> TtyDisplay<'a, StdErr, Self, Out, ApplyFn> where
ApplyFn: Fn(&'a Self) -> Out,
[src]
&'a self,
apply: ApplyFn
) -> TtyDisplay<'a, StdErr, Self, Out, ApplyFn> where
ApplyFn: Fn(&'a Self) -> Out,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,