[][src]Struct billboard::Config

pub struct Config { /* fields omitted */ }

Config holds the configuration of a Billboard and determines how it should be displayed

Methods

impl Config[src]

pub fn default() -> Config[src]

The default Config is a centered box with centered text

pub fn padding<'a>(&'a mut self, padding: usize) -> &'a mut Config[src]

Set the padding of your Billboard to a specific size This is the space around the text inside of your Billboard

pub fn margin<'a>(&'a mut self, margin: usize) -> &'a mut Config[src]

Set the margin of your Billboard to a specific size This is the space around the outside of your Billboard

pub fn border_style<'a>(
    &'a mut self,
    border_style: BorderStyle
) -> &'a mut Config
[src]

Set the BorderStyle of your Billboard

pub fn text_alignment<'a>(
    &'a mut self,
    text_alignment: Alignment
) -> &'a mut Config
[src]

Set the Alignment of the text in your Billboard

pub fn box_alignment<'a>(
    &'a mut self,
    box_alignment: Alignment
) -> &'a mut Config
[src]

Set the Alignment of your Billboard in the terminal

pub fn border_color<'a>(
    &'a mut self,
    border_color: BorderColor
) -> &'a mut Config
[src]

Set the border color of your Billboard

pub fn build<'a>(&'a mut self) -> Billboard[src]

Get a Billboard from a Config Use this after you have applied the styling you desire

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl PartialEq<Config> for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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.