[−][src]Struct bauxite::BoxBuilder
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
Auto Trait Implementations
impl Send for BoxBuilder
impl Unpin for BoxBuilder
impl Sync for BoxBuilder
impl UnwindSafe for BoxBuilder
impl RefUnwindSafe for BoxBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,