Struct banner::Style [−][src]
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
impl RefUnwindSafe for Style
[src]
impl Send for Style
[src]
impl Sync for Style
[src]
impl Unpin for Style
[src]
impl UnwindSafe for Style
[src]
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, 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>,