pub struct TextBorderOptions { /* private fields */ }
Expand description
TextBorderOptions
is a structure used to specify the configuration for text borders.
§Fields
border_char
- The character used to create the border.border_thickness
- A tuple specifying the border thickness in the order (left, top, right, bottom).margin_thickness
- A tuple specifying the margin thickness in the order (left, top, right, bottom).prevent_trim
- A boolean flag indicating whether to prevent trimming whitespace from the message.
§Examples
let options = TextBorderOptions {
border_char: '#',
border_thickness: (2, 2, 2, 2),
margin_thickness: (1, 1, 1, 1),
prevent_trim: true,
};
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextBorderOptions
impl RefUnwindSafe for TextBorderOptions
impl Send for TextBorderOptions
impl Sync for TextBorderOptions
impl Unpin for TextBorderOptions
impl UnwindSafe for TextBorderOptions
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