pub enum BoxType {
Classic,
Single,
DoubleHorizontal,
DoubleVertical,
Double,
Bold,
Rounded,
BoldCorners,
}Expand description
Defines the border style for the text box.
Each variant represents a different visual style for the box borders.
§Examples
use boxy_cli::prelude::*;
let mut box1 = Boxy::new(BoxType::Double, "#00ffff");
let mut box2 = Boxy::new(BoxType::Rounded, "#00ffff");
let mut box3 = Boxy::new(BoxType::Bold, "#00ffff");Variants§
Classic
Simple ASCII-style box using + for corners and - for borders
Single
Default style using single-line Unicode box drawing characters
DoubleHorizontal
Double horizontal lines with single vertical lines
DoubleVertical
Double vertical lines with single horizontal lines
Double
Double lines for all borders
Bold
Thicker/bold lines for all borders
Rounded
Box with rounded corners
BoldCorners
Box with bold corners and normal edges
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoxType
impl RefUnwindSafe for BoxType
impl Send for BoxType
impl Sync for BoxType
impl Unpin for BoxType
impl UnwindSafe for BoxType
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