Struct console::StyledObject [−][src]
A formatting wrapper that can be styled for a terminal.
Implementations
impl<D> StyledObject<D>
[src]
pub fn force_styling(self, value: bool) -> StyledObject<D>
[src]
Forces styling on or off.
This overrides the detection from clicolors-control
.
pub fn for_stderr(self) -> StyledObject<D>
[src]
Specifies that style is applying to something being written on stderr
pub fn for_stdout(self) -> StyledObject<D>
[src]
Specifies that style is applying to something being written on stdout
This is the default
pub fn fg(self, color: Color) -> StyledObject<D>
[src]
Sets a foreground color.
pub fn bg(self, color: Color) -> StyledObject<D>
[src]
Sets a background color.
pub fn attr(self, attr: Attribute) -> StyledObject<D>
[src]
Adds a attr.
pub fn black(self) -> StyledObject<D>
[src]
pub fn red(self) -> StyledObject<D>
[src]
pub fn green(self) -> StyledObject<D>
[src]
pub fn yellow(self) -> StyledObject<D>
[src]
pub fn blue(self) -> StyledObject<D>
[src]
pub fn magenta(self) -> StyledObject<D>
[src]
pub fn cyan(self) -> StyledObject<D>
[src]
pub fn white(self) -> StyledObject<D>
[src]
pub fn color256(self, color: u8) -> StyledObject<D>
[src]
pub fn bright(self) -> StyledObject<D>
[src]
pub fn on_black(self) -> StyledObject<D>
[src]
pub fn on_red(self) -> StyledObject<D>
[src]
pub fn on_green(self) -> StyledObject<D>
[src]
pub fn on_yellow(self) -> StyledObject<D>
[src]
pub fn on_blue(self) -> StyledObject<D>
[src]
pub fn on_magenta(self) -> StyledObject<D>
[src]
pub fn on_cyan(self) -> StyledObject<D>
[src]
pub fn on_white(self) -> StyledObject<D>
[src]
pub fn on_color256(self, color: u8) -> StyledObject<D>
[src]
pub fn on_bright(self) -> StyledObject<D>
[src]
pub fn bold(self) -> StyledObject<D>
[src]
pub fn dim(self) -> StyledObject<D>
[src]
pub fn italic(self) -> StyledObject<D>
[src]
pub fn underlined(self) -> StyledObject<D>
[src]
pub fn blink(self) -> StyledObject<D>
[src]
pub fn reverse(self) -> StyledObject<D>
[src]
pub fn hidden(self) -> StyledObject<D>
[src]
Trait Implementations
impl<D: Binary> Binary for StyledObject<D>
[src]
impl<D: Clone> Clone for StyledObject<D>
[src]
fn clone(&self) -> StyledObject<D>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<D: Debug> Debug for StyledObject<D>
[src]
impl<D: Display> Display for StyledObject<D>
[src]
impl<D: LowerExp> LowerExp for StyledObject<D>
[src]
impl<D: LowerHex> LowerHex for StyledObject<D>
[src]
impl<D: Octal> Octal for StyledObject<D>
[src]
impl<D: Pointer> Pointer for StyledObject<D>
[src]
impl<D: UpperExp> UpperExp for StyledObject<D>
[src]
impl<D: UpperHex> UpperHex for StyledObject<D>
[src]
Auto Trait Implementations
impl<D> RefUnwindSafe for StyledObject<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for StyledObject<D> where
D: Send,
D: Send,
impl<D> Sync for StyledObject<D> where
D: Sync,
D: Sync,
impl<D> Unpin for StyledObject<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for StyledObject<D> where
D: UnwindSafe,
D: UnwindSafe,
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<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,