pub struct Borders<T> {Show 15 fields
pub top: Option<T>,
pub top_left: Option<T>,
pub top_right: Option<T>,
pub top_intersection: Option<T>,
pub bottom: Option<T>,
pub bottom_left: Option<T>,
pub bottom_right: Option<T>,
pub bottom_intersection: Option<T>,
pub horizontal: Option<T>,
pub vertical: Option<T>,
pub intersection: Option<T>,
pub left: Option<T>,
pub left_intersection: Option<T>,
pub right: Option<T>,
pub right_intersection: Option<T>,
}
Expand description
Borders represents a Table frame with horizontal and vertical split lines.
Fields§
§top: Option<T>
A top horizontal on the frame.
top_left: Option<T>
A top left on the frame.
top_right: Option<T>
A top right on the frame.
top_intersection: Option<T>
A top horizontal intersection on the frame.
bottom: Option<T>
A bottom horizontal on the frame.
bottom_left: Option<T>
A bottom left on the frame.
bottom_right: Option<T>
A bottom right on the frame.
bottom_intersection: Option<T>
A bottom horizontal intersection on the frame.
horizontal: Option<T>
A horizontal split.
vertical: Option<T>
A vertical split.
intersection: Option<T>
A top left character on the frame.
left: Option<T>
A vertical split on the left frame line.
left_intersection: Option<T>
A horizontal split on the left frame line.
right: Option<T>
A vertical split on the right frame line.
right_intersection: Option<T>
A horizontal split on the right frame line.
Implementations§
Source§impl<T> Borders<T>
impl<T> Borders<T>
Sourcepub const fn filled(val: T) -> Selfwhere
T: Copy,
pub const fn filled(val: T) -> Selfwhere
T: Copy,
Returns Borders filled in with a supplied value.
Sourcepub const fn has_bottom(&self) -> bool
pub const fn has_bottom(&self) -> bool
Verifies if borders has bottom line set on the frame.
Sourcepub const fn has_horizontal(&self) -> bool
pub const fn has_horizontal(&self) -> bool
Verifies if borders has horizontal lines set.
Sourcepub const fn has_vertical(&self) -> bool
pub const fn has_vertical(&self) -> bool
Verifies if borders has vertical lines set.
Sourcepub fn convert_into<T1>(self) -> Borders<T1>where
T1: From<T>,
pub fn convert_into<T1>(self) -> Borders<T1>where
T1: From<T>,
Converts borders type into another one.