pub struct VerticalLine<T, B, I> { /* private fields */ }
Expand description
A vertical split line which can be used to set a border.
Implementations§
Source§impl<T, B, I> VerticalLine<T, B, I>
impl<T, B, I> VerticalLine<T, B, I>
Sourcepub const fn inherit<L, R, const HSIZE: usize, const VSIZE: usize>(
style: Style<T, B, L, R, I, On, HSIZE, VSIZE>,
) -> Self
pub const fn inherit<L, R, const HSIZE: usize, const VSIZE: usize>( style: Style<T, B, L, R, I, On, HSIZE, VSIZE>, ) -> Self
Fetches vertical line from a style.
Source§impl<T, B, I> VerticalLine<T, B, I>
impl<T, B, I> VerticalLine<T, B, I>
Sourcepub const fn vertical(self, c: char) -> VerticalLine<T, B, I>
pub const fn vertical(self, c: char) -> VerticalLine<T, B, I>
Set a vertical character.
Sourcepub const fn intersection(self, c: char) -> VerticalLine<T, B, On>
pub const fn intersection(self, c: char) -> VerticalLine<T, B, On>
Set a vertical intersection character.
Sourcepub const fn top(self, c: char) -> VerticalLine<On, B, I>
pub const fn top(self, c: char) -> VerticalLine<On, B, I>
Set a top character.
Sourcepub const fn bottom(self, c: char) -> VerticalLine<T, On, I>
pub const fn bottom(self, c: char) -> VerticalLine<T, On, I>
Set a bottom character.
Source§impl<T, B, I> VerticalLine<T, B, I>
impl<T, B, I> VerticalLine<T, B, I>
Sourcepub const fn get_vertical(&self) -> char
pub const fn get_vertical(&self) -> char
Get a vertical character.
Sourcepub const fn into_inner(&self) -> Line<char>
pub const fn into_inner(&self) -> Line<char>
Get a general structure of line.
Source§impl<T, B> VerticalLine<T, B, On>
impl<T, B> VerticalLine<T, B, On>
Sourcepub const fn get_intersection(&self) -> char
pub const fn get_intersection(&self) -> char
Set a horizontal intersection character.
Sourcepub const fn remove_intersection(self) -> VerticalLine<T, B, ()>
pub const fn remove_intersection(self) -> VerticalLine<T, B, ()>
Remove a horizontal intersection character.
Source§impl<B, I> VerticalLine<On, B, I>
impl<B, I> VerticalLine<On, B, I>
Sourcepub const fn remove_top(self) -> VerticalLine<(), B, I>
pub const fn remove_top(self) -> VerticalLine<(), B, I>
Remove a vertical top character.
Source§impl<T, I> VerticalLine<T, On, I>
impl<T, I> VerticalLine<T, On, I>
Sourcepub const fn get_bottom(&self) -> char
pub const fn get_bottom(&self) -> char
Get a bottom character.
Sourcepub const fn remove_bottom(self) -> VerticalLine<T, (), I>
pub const fn remove_bottom(self) -> VerticalLine<T, (), I>
Remove a vertical bottom character.
Trait Implementations§
Source§impl<T: Clone, B: Clone, I: Clone> Clone for VerticalLine<T, B, I>
impl<T: Clone, B: Clone, I: Clone> Clone for VerticalLine<T, B, I>
Source§fn clone(&self) -> VerticalLine<T, B, I>
fn clone(&self) -> VerticalLine<T, B, I>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Default, B: Default, I: Default> Default for VerticalLine<T, B, I>
impl<T: Default, B: Default, I: Default> Default for VerticalLine<T, B, I>
Source§fn default() -> VerticalLine<T, B, I>
fn default() -> VerticalLine<T, B, I>
Returns the “default value” for a type. Read more
Source§impl<T, B, I> From<VerticalLine<T, B, I>> for HorizontalLine<char>
impl<T, B, I> From<VerticalLine<T, B, I>> for HorizontalLine<char>
Source§fn from(value: VerticalLine<T, B, I>) -> Self
fn from(value: VerticalLine<T, B, I>) -> Self
Converts to this type from the input type.
Source§impl<T, B, I> From<VerticalLine<T, B, I>> for VerticalLine<char>
impl<T, B, I> From<VerticalLine<T, B, I>> for VerticalLine<char>
Source§fn from(value: VerticalLine<T, B, I>) -> Self
fn from(value: VerticalLine<T, B, I>) -> Self
Converts to this type from the input type.
Source§impl<T, B, I> From<VerticalLine<char>> for VerticalLine<T, B, I>
impl<T, B, I> From<VerticalLine<char>> for VerticalLine<T, B, I>
Source§impl<T: Ord, B: Ord, I: Ord> Ord for VerticalLine<T, B, I>
impl<T: Ord, B: Ord, I: Ord> Ord for VerticalLine<T, B, I>
Source§fn cmp(&self, other: &VerticalLine<T, B, I>) -> Ordering
fn cmp(&self, other: &VerticalLine<T, B, I>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd, B: PartialOrd, I: PartialOrd> PartialOrd for VerticalLine<T, B, I>
impl<T: PartialOrd, B: PartialOrd, I: PartialOrd> PartialOrd for VerticalLine<T, B, I>
impl<T: Copy, B: Copy, I: Copy> Copy for VerticalLine<T, B, I>
impl<T: Eq, B: Eq, I: Eq> Eq for VerticalLine<T, B, I>
impl<T, B, I> StructuralPartialEq for VerticalLine<T, B, I>
Auto Trait Implementations§
impl<T, B, I> Freeze for VerticalLine<T, B, I>
impl<T, B, I> RefUnwindSafe for VerticalLine<T, B, I>
impl<T, B, I> Send for VerticalLine<T, B, I>
impl<T, B, I> Sync for VerticalLine<T, B, I>
impl<T, B, I> Unpin for VerticalLine<T, B, I>
impl<T, B, I> UnwindSafe for VerticalLine<T, B, I>
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