pub enum Justify {
Center,
Left,
Right,
FontDefault,
}Expand description
Horizontal justification mode.
use rusty_figlet::{FigletBuilder, Justify};
let _ = FigletBuilder::new().justify(Justify::Center);Variants§
Center
Center the rendered banner within the resolved width.
Left
Left-align the rendered banner.
Right
Right-align the rendered banner.
FontDefault
Use the font’s print-direction default (LTR fonts default to Left).
Trait Implementations§
impl Copy for Justify
impl Eq for Justify
impl StructuralPartialEq for Justify
Auto Trait Implementations§
impl Freeze for Justify
impl RefUnwindSafe for Justify
impl Send for Justify
impl Sync for Justify
impl Unpin for Justify
impl UnsafeUnpin for Justify
impl UnwindSafe for Justify
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more