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<L, (), I>
pub const fn remove_right(self) -> HorizontalLine<L, (), 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 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<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: PartialOrd, R: PartialOrd, I: PartialOrd> PartialOrd for HorizontalLine<L, R, I>
impl<L: PartialOrd, R: PartialOrd, I: PartialOrd> PartialOrd for HorizontalLine<L, R, I>
impl<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> StructuralPartialEq for HorizontalLine<L, R, I>
Auto Trait Implementations§
impl<L, R, I> Freeze for HorizontalLine<L, R, I>
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