Struct tabled::settings::style::HorizontalLine
source · pub struct HorizontalLine<L, R, I> { /* private fields */ }
Expand description
A horizontal split line which can be used to set a border.
Implementations§
source§impl<L, R, I> HorizontalLine<L, R, I>
impl<L, R, I> HorizontalLine<L, R, I>
sourcepub const fn inherit<T, B, const HSIZE: usize, const VSIZE: usize>(
style: Style<T, B, L, R, On, I, HSIZE, VSIZE>
) -> Self
pub const fn inherit<T, B, const HSIZE: usize, const VSIZE: usize>( style: Style<T, B, L, R, On, I, HSIZE, VSIZE> ) -> Self
Fetches vertical line from a style.
source§impl<L, R, I> HorizontalLine<L, R, I>
impl<L, R, I> HorizontalLine<L, R, I>
sourcepub const fn horizontal(self, c: char) -> HorizontalLine<L, R, I>
pub const fn horizontal(self, c: char) -> HorizontalLine<L, R, I>
Set a horizontal character.
sourcepub const fn intersection(self, c: char) -> HorizontalLine<L, R, On>
pub const fn intersection(self, c: char) -> HorizontalLine<L, R, On>
Set a vertical intersection character.
sourcepub const fn left(self, c: char) -> HorizontalLine<On, R, I>
pub const fn left(self, c: char) -> HorizontalLine<On, R, I>
Set a left character.
sourcepub const fn right(self, c: char) -> HorizontalLine<L, On, I>
pub const fn right(self, c: char) -> HorizontalLine<L, On, I>
Set a right character.
source§impl<L, R, I> HorizontalLine<L, R, I>
impl<L, R, I> HorizontalLine<L, R, I>
sourcepub const fn get_horizontal(&self) -> char
pub const fn get_horizontal(&self) -> char
Get a horizontal 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<L, R> HorizontalLine<L, R, On>
impl<L, R> HorizontalLine<L, R, On>
sourcepub const fn get_intersection(&self) -> char
pub const fn get_intersection(&self) -> char
Set a vertical intersection character.
sourcepub const fn remove_intersection(self) -> HorizontalLine<L, R, ()>
pub const fn remove_intersection(self) -> HorizontalLine<L, R, ()>
Remove a vertical intersection character.
source§impl<R, I> HorizontalLine<On, R, I>
impl<R, I> HorizontalLine<On, R, I>
sourcepub const fn remove_left(self) -> HorizontalLine<(), R, I>
pub const fn remove_left(self) -> HorizontalLine<(), R, I>
Remove a horizontal left character.
source§impl<L, I> HorizontalLine<L, On, I>
impl<L, I> HorizontalLine<L, On, I>
sourcepub const fn remove_right(self) -> HorizontalLine<I, (), I>
pub const fn remove_right(self) -> HorizontalLine<I, (), I>
Remove a horizontal right character.
Trait Implementations§
source§impl<L: Clone, R: Clone, I: Clone> Clone for HorizontalLine<L, R, I>
impl<L: Clone, R: Clone, I: Clone> Clone for HorizontalLine<L, R, I>
source§fn clone(&self) -> HorizontalLine<L, R, I>
fn clone(&self) -> HorizontalLine<L, R, 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<L: Default, R: Default, I: Default> Default for HorizontalLine<L, R, I>
impl<L: Default, R: Default, I: Default> Default for HorizontalLine<L, R, I>
source§fn default() -> HorizontalLine<L, R, I>
fn default() -> HorizontalLine<L, R, I>
Returns the “default value” for a type. Read more
source§impl<L, R, I> From<HorizontalLine<L, R, I>> for HorizontalLine<char>
impl<L, R, I> From<HorizontalLine<L, R, I>> for HorizontalLine<char>
source§fn from(value: HorizontalLine<L, R, I>) -> Self
fn from(value: HorizontalLine<L, R, I>) -> Self
Converts to this type from the input type.
source§impl<T, B, I> From<HorizontalLine<T, B, I>> for VerticalLine<char>
impl<T, B, I> From<HorizontalLine<T, B, I>> for VerticalLine<char>
source§fn from(value: HorizontalLine<T, B, I>) -> Self
fn from(value: HorizontalLine<T, B, I>) -> Self
Converts to this type from the input type.
source§impl<L, R, I> From<HorizontalLine<char>> for HorizontalLine<L, R, I>
impl<L, R, I> From<HorizontalLine<char>> for HorizontalLine<L, R, I>
source§impl<L: Ord, R: Ord, I: Ord> Ord for HorizontalLine<L, R, I>
impl<L: Ord, R: Ord, I: Ord> Ord for HorizontalLine<L, R, I>
source§fn cmp(&self, other: &HorizontalLine<L, R, I>) -> Ordering
fn cmp(&self, other: &HorizontalLine<L, R, 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<L: PartialEq, R: PartialEq, I: PartialEq> PartialEq for HorizontalLine<L, R, I>
impl<L: PartialEq, R: PartialEq, I: PartialEq> PartialEq for HorizontalLine<L, R, I>
source§fn eq(&self, other: &HorizontalLine<L, R, I>) -> bool
fn eq(&self, other: &HorizontalLine<L, R, I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<L: PartialOrd, R: PartialOrd, I: PartialOrd> PartialOrd for HorizontalLine<L, R, I>
impl<L: PartialOrd, R: PartialOrd, I: PartialOrd> PartialOrd for HorizontalLine<L, R, I>
source§fn partial_cmp(&self, other: &HorizontalLine<L, R, I>) -> Option<Ordering>
fn partial_cmp(&self, other: &HorizontalLine<L, R, 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<L: Copy, R: Copy, I: Copy> Copy for HorizontalLine<L, R, I>
impl<L: Eq, R: Eq, I: Eq> Eq for HorizontalLine<L, R, I>
impl<L, R, I> StructuralEq for HorizontalLine<L, R, I>
impl<L, R, I> StructuralPartialEq for HorizontalLine<L, R, I>
Auto Trait Implementations§
impl<L, R, I> RefUnwindSafe for HorizontalLine<L, R, I>
impl<L, R, I> Send for HorizontalLine<L, R, I>
impl<L, R, I> Sync for HorizontalLine<L, R, I>
impl<L, R, I> Unpin for HorizontalLine<L, R, I>
impl<L, R, I> UnwindSafe for HorizontalLine<L, R, 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