Struct tabled::settings::style::VerticalLine
source · 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 copy 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: PartialEq, B: PartialEq, I: PartialEq> PartialEq for VerticalLine<T, B, I>
impl<T: PartialEq, B: PartialEq, I: PartialEq> PartialEq for VerticalLine<T, B, I>
source§fn eq(&self, other: &VerticalLine<T, B, I>) -> bool
fn eq(&self, other: &VerticalLine<T, B, I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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>
source§fn partial_cmp(&self, other: &VerticalLine<T, B, I>) -> Option<Ordering>
fn partial_cmp(&self, other: &VerticalLine<T, B, I>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<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> StructuralEq for VerticalLine<T, B, I>
impl<T, B, I> StructuralPartialEq for VerticalLine<T, B, I>
Auto Trait Implementations§
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