pub struct Border<T = char> {
pub top: Option<T>,
pub bottom: Option<T>,
pub left: Option<T>,
pub right: Option<T>,
pub left_top_corner: Option<T>,
pub left_bottom_corner: Option<T>,
pub right_top_corner: Option<T>,
pub right_bottom_corner: Option<T>,
}
Expand description
Border is a representation of a cells’s borders (left, right, top, bottom, and the corners)
Fields§
§top: Option<T>
A character for a top.
bottom: Option<T>
A character for a bottom.
left: Option<T>
A character for a left.
right: Option<T>
A character for a right.
left_top_corner: Option<T>
A character for a left top corner.
left_bottom_corner: Option<T>
A character for a left bottom corner.
right_top_corner: Option<T>
A character for a right top corner.
right_bottom_corner: Option<T>
A character for a right bottom corner.
Implementations§
Source§impl<T: Copy> Border<T>
impl<T: Copy> Border<T>
Sourcepub fn filled(c: T) -> Self
pub fn filled(c: T) -> Self
This function constructs a cell borders with all sides’s char set to a given character.
It behaives like Border::full
with the same character set to each side.
Trait Implementations§
impl<T: Eq> Eq for Border<T>
impl<T> StructuralPartialEq for Border<T>
Auto Trait Implementations§
impl<T> Freeze for Border<T>where
T: Freeze,
impl<T> RefUnwindSafe for Border<T>where
T: RefUnwindSafe,
impl<T> Send for Border<T>where
T: Send,
impl<T> Sync for Border<T>where
T: Sync,
impl<T> Unpin for Border<T>where
T: Unpin,
impl<T> UnwindSafe for Border<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
Mutably borrows from an owned value. Read more