[][src]Struct prototty_decorator::BorderStyle

pub struct BorderStyle {
    pub title: Option<String>,
    pub padding: BorderPadding,
    pub chars: BorderChars,
    pub foreground: Rgb24,
    pub background: Option<Rgb24>,
    pub bold: bool,
    pub title_style: Style,
}

Decorate another element with a border. It's possible to give the border a title, in which case the text appears in the top-left corner.

Fields

title: Option<String>padding: BorderPaddingchars: BorderCharsforeground: Rgb24background: Option<Rgb24>bold: booltitle_style: Style

Methods

impl BorderStyle[src]

pub fn new() -> Self[src]

pub fn new_with_title<S: Into<String>>(title: S) -> Self[src]

Trait Implementations

impl Clone for BorderStyle[src]

impl Debug for BorderStyle[src]

impl Default for BorderStyle[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.