[][src]Struct bauxite::BoxBuilder

pub struct BoxBuilder { /* fields omitted */ }

Methods

impl BoxBuilder[src]

pub fn new(message: String) -> BoxBuilder[src]

Create a new boxed message

pub fn from(message: &str) -> BoxBuilder[src]

pub fn padding(self, pad: usize) -> Self[src]

Set the global padding on the box

pub fn alignment(self, align: Alignment) -> Self[src]

Set the alignment of the content

pub fn max_width(self, width: usize) -> Self[src]

Set the maximum width of the box before lines should wrap

pub fn padding_bottom(self, pad: usize) -> Self[src]

Set the padding on the bottom, overrides the global bottom padding

pub fn padding_top(self, pad: usize) -> Self[src]

Set the padding on the top, overrides the global top padding

pub fn padding_left(self, pad: usize) -> Self[src]

Set the padding on the left, overrides the global left padding

pub fn padding_right(self, pad: usize) -> Self[src]

Set the padding on the right, overrides the global right padding

pub fn to_string(&self) -> String[src]

BoxBuildered message to string

Trait Implementations

impl Display for BoxBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.

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

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

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