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 VerticalLine<(), (), ()>

source

pub const fn new(main: char) -> Self

Creates a new vertical split line.

source§

impl<T, B, I> VerticalLine<T, B, I>

source

pub const fn empty() -> Self

Creates a stub horizontal line.

source

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

pub const fn inherit_left<R, V, const HSIZE: usize, const VSIZE: usize>( style: Style<T, B, On, R, I, V, HSIZE, VSIZE> ) -> Self

Fetches left vertical line from a style.

source

pub const fn inherit_right<L, V, const HSIZE: usize, const VSIZE: usize>( style: Style<T, B, L, On, I, V, HSIZE, VSIZE> ) -> Self

Fetches right vertical line from a style.

source§

impl VerticalLine<On, On, On>

source

pub const fn full( main: char, intersection: char, top: char, bottom: char ) -> Self

Creates a new vertical split line.

source

pub const fn filled(main: char) -> Self

Creates a new vertical split line.

source§

impl<T, B, I> VerticalLine<T, B, I>

source

pub const fn vertical(self, c: char) -> VerticalLine<T, B, I>

Set a vertical character.

source

pub const fn intersection(self, c: char) -> VerticalLine<T, B, On>

Set a vertical intersection character.

source

pub const fn top(self, c: char) -> VerticalLine<On, B, I>

Set a top character.

source

pub const fn bottom(self, c: char) -> VerticalLine<T, On, I>

Set a bottom character.

source§

impl<T, B, I> VerticalLine<T, B, I>

source

pub const fn get_vertical(&self) -> char

Get a vertical character.

source

pub const fn into_inner(&self) -> Line<char>

Get a general structure of line.

source§

impl<T, B> VerticalLine<T, B, On>

source

pub const fn get_intersection(&self) -> char

Set a horizontal intersection character.

source

pub const fn remove_intersection(self) -> VerticalLine<T, B, ()>

Remove a horizontal intersection character.

source§

impl<B, I> VerticalLine<On, B, I>

source

pub const fn get_top(&self) -> char

Get a top character.

source

pub const fn remove_top(self) -> VerticalLine<(), B, I>

Remove a vertical top character.

source§

impl<T, I> VerticalLine<T, On, I>

source

pub const fn get_bottom(&self) -> char

Get a bottom character.

source

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>

source§

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)

Performs copy-assignment from source. Read more
source§

impl<T: Debug, B: Debug, I: Debug> Debug for VerticalLine<T, B, I>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Default, B: Default, I: Default> Default for VerticalLine<T, B, I>

source§

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>

source§

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>

source§

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>

source§

fn from(value: Line<char>) -> Self

Converts to this type from the input type.
source§

impl<T: Hash, B: Hash, I: Hash> Hash for VerticalLine<T, B, I>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T: Ord, B: Ord, I: Ord> Ord for VerticalLine<T, B, I>

source§

fn cmp(&self, other: &VerticalLine<T, B, I>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<T: PartialEq, B: PartialEq, I: PartialEq> PartialEq for VerticalLine<T, B, I>

source§

fn eq(&self, other: &VerticalLine<T, B, I>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<T: Copy, B: Copy, I: Copy> Copy for VerticalLine<T, B, I>

source§

impl<T: Eq, B: Eq, I: Eq> Eq for VerticalLine<T, B, I>

source§

impl<T, B, I> StructuralEq for VerticalLine<T, B, I>

source§

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>
where B: Send, I: Send, T: Send,

§

impl<T, B, I> Sync for VerticalLine<T, B, I>
where B: Sync, I: Sync, T: Sync,

§

impl<T, B, I> Unpin for VerticalLine<T, B, I>
where B: Unpin, I: Unpin, T: Unpin,

§

impl<T, B, I> UnwindSafe for VerticalLine<T, B, I>
where B: UnwindSafe, I: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.