Struct termimad::CompoundStyle [−][src]
pub struct CompoundStyle {
pub object_style: ContentStyle,
}
Expand description
A style which may be applied to a compound
Fields
object_style: ContentStyle
Implementations
Apply an StyledContent
to the passed displayable object.
pub const fn new(
foreground_color: Option<Color>,
background_color: Option<Color>,
attributes: Attributes
) -> CompoundStyle
pub const fn new(
foreground_color: Option<Color>,
background_color: Option<Color>,
attributes: Attributes
) -> CompoundStyle
Get an new instance of CompoundStyle
Get an new instance of CompoundStyle
Get an new instance of CompoundStyle
Get an new instance of CompoundStyle
Get an new instance of CompoundStyle
Remove an Attribute
. Like italic, underlined or bold.
Add the defined characteristics of other
to self, overwriting
its own one when defined
Write a string several times with the line compound style
Implementation Note: performances here are critical
Write 0 or more spaces with the line’s compound style
write the value with this style on the given writer
write the string with this style on the given writer
Clear with the compound_style’s background.
let mut w = std::io::stderr();
skin.paragraph.compound_style.clear(&mut w, ClearType::UntilNewLine).unwrap();
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CompoundStyle
impl Send for CompoundStyle
impl Sync for CompoundStyle
impl Unpin for CompoundStyle
impl UnwindSafe for CompoundStyle
Blanket Implementations
Mutably borrows from an owned value. Read more