pub struct Border {Show 21 fields
pub top_left: char,
pub top: char,
pub top_right: char,
pub top_split: char,
pub bottom_left: char,
pub bottom: char,
pub bottom_right: char,
pub bottom_split: char,
pub left: char,
pub left_split: char,
pub right: char,
pub right_split: char,
pub vertical_split: char,
pub vertical_split_intersect_left: char,
pub vertical_split_intersect_right: char,
pub vertical_split_intersect_both: char,
pub horizontal_split: char,
pub horizontal_split_intersect_top: char,
pub horizontal_split_intersect_bottom: char,
pub horizontal_split_intersect_both: char,
pub color: Color,
}
Fields§
§top_left: char
§top: char
§top_right: char
§top_split: char
§bottom_left: char
§bottom: char
§bottom_right: char
§bottom_split: char
§left: char
§left_split: char
§right: char
§right_split: char
§vertical_split: char
§vertical_split_intersect_left: char
§vertical_split_intersect_right: char
§vertical_split_intersect_both: char
§horizontal_split: char
§horizontal_split_intersect_top: char
§horizontal_split_intersect_bottom: char
§horizontal_split_intersect_both: char
§color: Color
Implementations§
Source§impl Border
impl Border
pub fn default() -> Border
Sourcepub fn format_top(self: &Border, widths: &[usize]) -> String
pub fn format_top(self: &Border, widths: &[usize]) -> String
Formats the top border
Sourcepub fn format_bottom(self: &Border, widths: &[usize]) -> String
pub fn format_bottom(self: &Border, widths: &[usize]) -> String
Formats the bottom border
Sourcepub fn format_left(self: &Border) -> String
pub fn format_left(self: &Border) -> String
Formats the left border.
Sourcepub fn format_right(self: &Border) -> String
pub fn format_right(self: &Border) -> String
Formats the right border.
Sourcepub fn format_horizontal_split(self: &Border, widths: &[usize]) -> String
pub fn format_horizontal_split(self: &Border, widths: &[usize]) -> String
Formats a horizontal split.
Sourcepub fn format_vertical_split(self: &Border) -> String
pub fn format_vertical_split(self: &Border) -> String
Formats a vertical split.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Border
impl RefUnwindSafe for Border
impl Send for Border
impl Sync for Border
impl Unpin for Border
impl UnwindSafe for Border
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