[−][src]Struct crossterm::StyledObject
Contains both the style and the content wits can be styled.
Fields
object_style: ObjectStyle
content: D
Methods
impl<'a, D> StyledObject<D> where
D: 'a + Display,
[src]
D: 'a + Display,
pub fn with(self, foreground_color: Color) -> StyledObject<D>
[src]
Set the foreground of the styled object to the passed Color
.
Remarks
This methods consumes 'self', and works like a builder.
By having this functionality you can do: with().on().attr()
pub fn on(self, background_color: Color) -> StyledObject<D>
[src]
Set the background of the styled object to the passed Color
.
Remarks
This methods consumes 'self', and works like a builder.
By having this functionality you can do: with().on().attr()
pub fn attr(self, attr: Attribute) -> StyledObject<D>
[src]
Set the attribute of an styled object to the passed Attribute
.
Remarks
This methods consumes 'self', and works like a builder.
By having this functionality you can do: with().on().attr()
Trait Implementations
impl<D> Styler<D> for StyledObject<D> where
D: Display,
[src]
D: Display,
fn reset(self) -> StyledObject<D>
[src]
fn bold(self) -> StyledObject<D>
[src]
fn underlined(self) -> StyledObject<D>
[src]
fn reverse(self) -> StyledObject<D>
[src]
fn dim(self) -> StyledObject<D>
[src]
fn italic(self) -> StyledObject<D>
[src]
fn negative(self) -> StyledObject<D>
[src]
fn slow_blink(self) -> StyledObject<D>
[src]
fn rapid_blink(self) -> StyledObject<D>
[src]
[src]
fn crossed_out(self) -> StyledObject<D>
[src]
impl<D> Colorize<D> for StyledObject<D> where
D: Display,
[src]
D: Display,
fn black(self) -> StyledObject<D>
[src]
fn dark_grey(self) -> StyledObject<D>
[src]
fn red(self) -> StyledObject<D>
[src]
fn dark_red(self) -> StyledObject<D>
[src]
fn green(self) -> StyledObject<D>
[src]
fn dark_green(self) -> StyledObject<D>
[src]
fn yellow(self) -> StyledObject<D>
[src]
fn dark_yellow(self) -> StyledObject<D>
[src]
fn blue(self) -> StyledObject<D>
[src]
fn dark_blue(self) -> StyledObject<D>
[src]
fn magenta(self) -> StyledObject<D>
[src]
fn dark_magenta(self) -> StyledObject<D>
[src]
fn cyan(self) -> StyledObject<D>
[src]
fn dark_cyan(self) -> StyledObject<D>
[src]
fn white(self) -> StyledObject<D>
[src]
fn grey(self) -> StyledObject<D>
[src]
fn on_black(self) -> StyledObject<D>
[src]
fn on_dark_grey(self) -> StyledObject<D>
[src]
fn on_red(self) -> StyledObject<D>
[src]
fn on_dark_red(self) -> StyledObject<D>
[src]
fn on_green(self) -> StyledObject<D>
[src]
fn on_dark_green(self) -> StyledObject<D>
[src]
fn on_yellow(self) -> StyledObject<D>
[src]
fn on_dark_yellow(self) -> StyledObject<D>
[src]
fn on_blue(self) -> StyledObject<D>
[src]
fn on_dark_blue(self) -> StyledObject<D>
[src]
fn on_magenta(self) -> StyledObject<D>
[src]
fn on_dark_magenta(self) -> StyledObject<D>
[src]
fn on_cyan(self) -> StyledObject<D>
[src]
fn on_dark_cyan(self) -> StyledObject<D>
[src]
fn on_white(self) -> StyledObject<D>
[src]
fn on_grey(self) -> StyledObject<D>
[src]
impl<D> Display for StyledObject<D> where
D: Display,
[src]
D: Display,
Auto Trait Implementations
impl<D> Send for StyledObject<D> where
D: Send,
D: Send,
impl<D> Sync for StyledObject<D> where
D: Sync,
D: Sync,
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,