[−][src]Struct billboard::Config
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]
&'a mut self,
border_style: BorderStyle
) -> &'a mut Config
Set the BorderStyle
of your Billboard
pub fn text_alignment<'a>(
&'a mut self,
text_alignment: Alignment
) -> &'a mut Config
[src]
&'a mut self,
text_alignment: Alignment
) -> &'a mut Config
Set the Alignment
of the text in your Billboard
pub fn box_alignment<'a>(
&'a mut self,
box_alignment: Alignment
) -> &'a mut Config
[src]
&'a mut self,
box_alignment: Alignment
) -> &'a mut Config
Set the Alignment
of your Billboard
in the terminal
pub fn border_color<'a>(
&'a mut self,
border_color: BorderColor
) -> &'a mut Config
[src]
&'a mut self,
border_color: BorderColor
) -> &'a mut Config
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]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,