pub struct Config { /* private fields */ }
Expand description
Config
holds the configuration of a Billboard
and determines how it should be displayed
Implementations
sourceimpl Config
impl Config
sourcepub fn padding<'a>(&'a mut self, padding: usize) -> &'a mut Config
pub fn padding<'a>(&'a mut self, padding: usize) -> &'a mut Config
Set the padding of your Billboard
to a specific size
This is the space around the text inside of your Billboard
sourcepub fn margin<'a>(&'a mut self, margin: usize) -> &'a mut Config
pub fn margin<'a>(&'a mut self, margin: usize) -> &'a mut Config
Set the margin of your Billboard
to a specific size
This is the space around the outside of your Billboard
sourcepub fn border_style<'a>(
&'a mut self,
border_style: BorderStyle
) -> &'a mut Config
pub fn border_style<'a>(
&'a mut self,
border_style: BorderStyle
) -> &'a mut Config
Set the BorderStyle
of your Billboard
sourcepub fn text_alignment<'a>(
&'a mut self,
text_alignment: Alignment
) -> &'a mut Config
pub fn text_alignment<'a>(
&'a mut self,
text_alignment: Alignment
) -> &'a mut Config
Set the Alignment
of the text in your Billboard
sourcepub fn box_alignment<'a>(
&'a mut self,
box_alignment: Alignment
) -> &'a mut Config
pub fn box_alignment<'a>(
&'a mut self,
box_alignment: Alignment
) -> &'a mut Config
Set the Alignment
of your Billboard
in the terminal
sourcepub fn border_color<'a>(
&'a mut self,
border_color: BorderColor
) -> &'a mut Config
pub fn border_color<'a>(
&'a mut self,
border_color: BorderColor
) -> &'a mut Config
Set the border color of your Billboard
Trait Implementations
impl StructuralPartialEq for Config
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more