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) -> Borders<T>where
T: Copy,
pub const fn filled(val: T) -> Borders<T>where
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.
Trait Implementations§
source§impl<T, B, L, R, H, V, const HSIZE: usize, const VSIZE: usize> From<Style<T, B, L, R, H, V, HSIZE, VSIZE>> for Borders<char>
impl<T, B, L, R, H, V, const HSIZE: usize, const VSIZE: usize> From<Style<T, B, L, R, H, V, HSIZE, VSIZE>> for Borders<char>
source§impl<T> Ord for Borders<T>where
T: Ord,
impl<T> Ord for Borders<T>where
T: Ord,
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl<T> PartialEq for Borders<T>where
T: PartialEq,
impl<T> PartialEq for Borders<T>where
T: PartialEq,
source§impl<T> PartialOrd for Borders<T>where
T: PartialOrd,
impl<T> PartialOrd for Borders<T>where
T: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<R, D> TableOption<R, ColoredConfig, D> for Borders<char>
Available on crate feature std
only.
impl<R, D> TableOption<R, ColoredConfig, D> for Borders<char>
std
only.source§fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)
fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
TableOption
is going to change table layout. Read moresource§impl<R, D> TableOption<R, CompactConfig, D> for Borders<char>
impl<R, D> TableOption<R, CompactConfig, D> for Borders<char>
source§fn change(self, _: &mut R, cfg: &mut CompactConfig, _: &mut D)
fn change(self, _: &mut R, cfg: &mut CompactConfig, _: &mut D)
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
TableOption
is going to change table layout. Read moresource§impl<R, D> TableOption<R, CompactMultilineConfig, D> for Borders<char>
impl<R, D> TableOption<R, CompactMultilineConfig, D> for Borders<char>
source§fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
TableOption
is going to change table layout. Read more