[][src]Struct billboard::BorderComponents

pub struct BorderComponents {
    pub top_left: String,
    pub horizontal: String,
    pub top_right: String,
    pub vertical: String,
    pub bottom_right: String,
    pub bottom_left: String,
}

BorderComponents defines the Strings to use when dislaying the corners and sides of a Billboard.

Fields

top_left: String

String to display as the top left corner of a Billboard border.

This should be one visual character wide.

horizontal: String

String to repeat as the top and bottom of a Billboard border.

top_right: String

String to display as the top right corner of a Billboard border.

This should be one visual character wide.

vertical: String

String to repeat as the left and right of a Billboard border.

bottom_right: String

String to display as the bottom right corner of a Billboard border.

This should be one visual character wide.

bottom_left: String

String to display as the bottom left corner of a Billboard border.

This should be one visual character wide.

Methods

impl BorderComponents[src]

pub fn new(style: BorderStyle) -> BorderComponents[src]

Creates new BorderComponents from a BorderStyle.

Trait Implementations

impl Clone for BorderComponents[src]

impl Debug for BorderComponents[src]

impl PartialEq<BorderComponents> for BorderComponents[src]

impl StructuralPartialEq for BorderComponents[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.