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.
Trait Implementations§
source§impl<T: Ord> Ord for Borders<T>
impl<T: Ord> Ord for Borders<T>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl<T: PartialEq> PartialEq for Borders<T>
impl<T: PartialEq> PartialEq for Borders<T>
source§impl<T: PartialOrd> PartialOrd for Borders<T>
impl<T: PartialOrd> PartialOrd for Borders<T>
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 moreimpl<T: Copy> Copy for Borders<T>
impl<T: Eq> Eq for Borders<T>
impl<T> StructuralPartialEq for Borders<T>
Auto Trait Implementations§
impl<T> Freeze for Borders<T>where
T: Freeze,
impl<T> RefUnwindSafe for Borders<T>where
T: RefUnwindSafe,
impl<T> Send for Borders<T>where
T: Send,
impl<T> Sync for Borders<T>where
T: Sync,
impl<T> Unpin for Borders<T>where
T: Unpin,
impl<T> UnwindSafe for Borders<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)