pub struct Style {
pub no_color_codes: bool,
pub border: BorderStyle,
pub h1: ElementStyle,
pub h2: ElementStyle,
pub h3: ElementStyle,
pub text: ElementStyle,
}
Expand description
Defines a banner style.
Fields§
§no_color_codes: bool
Used to suppress color codes. Setting this flag to true will omit color codes from output.
border: BorderStyle
The border color.
h1: ElementStyle
Defines the style for H1 elements.
h2: ElementStyle
Defines the style for H2 elements.
h3: ElementStyle
Defines the style for H3 elements.
text: ElementStyle
Defines the style for text elements.
Implementations§
Source§impl Style
impl Style
Sourcepub fn header_style(self: &Style, level: &HeaderLevel) -> &ElementStyle
pub fn header_style(self: &Style, level: &HeaderLevel) -> &ElementStyle
Returns the element style for a header level.
§Arguments
self
- The parent style to retrieve the element style from.level
- The header level used to identify the requested element style.
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more