Struct banner::Style[][src]

pub struct Style {
    pub no_color_codes: bool,
    pub border: BorderStyle,
    pub h1: ElementStyle,
    pub h2: ElementStyle,
    pub h3: ElementStyle,
    pub text: ElementStyle,
}

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

impl Style[src]

pub fn new() -> Style[src]

Returns a new Style.

pub fn header_style(self: &Style, level: &HeaderLevel) -> &ElementStyle[src]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.