Struct tabled::grid::config::VerticalLine
source · pub struct VerticalLine<T> {
pub main: Option<T>,
pub intersection: Option<T>,
pub top: Option<T>,
pub bottom: Option<T>,
}
Expand description
A structure for a vertical line.
Fields§
§main: Option<T>
Line character.
intersection: Option<T>
Line intersection character.
top: Option<T>
Left intersection character.
bottom: Option<T>
Right intersection character.
Implementations§
source§impl<T> VerticalLine<T>
impl<T> VerticalLine<T>
sourcepub const fn new(
main: Option<T>,
intersection: Option<T>,
top: Option<T>,
bottom: Option<T>
) -> VerticalLine<T>
pub const fn new( main: Option<T>, intersection: Option<T>, top: Option<T>, bottom: Option<T> ) -> VerticalLine<T>
Creates a new line.
sourcepub const fn full(
main: T,
intersection: T,
left: T,
right: T
) -> VerticalLine<T>
pub const fn full( main: T, intersection: T, left: T, right: T ) -> VerticalLine<T>
Creates a new line.
sourcepub const fn filled(val: T) -> VerticalLine<T>where
T: Copy,
pub const fn filled(val: T) -> VerticalLine<T>where
T: Copy,
Creates a new line.
sourcepub const fn empty() -> VerticalLine<T>
pub const fn empty() -> VerticalLine<T>
Creates a new line.
Trait Implementations§
source§impl<T> Clone for VerticalLine<T>where
T: Clone,
impl<T> Clone for VerticalLine<T>where
T: Clone,
source§fn clone(&self) -> VerticalLine<T>
fn clone(&self) -> VerticalLine<T>
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> Debug for VerticalLine<T>where
T: Debug,
impl<T> Debug for VerticalLine<T>where
T: Debug,
source§impl<T> Default for VerticalLine<T>where
T: Default,
impl<T> Default for VerticalLine<T>where
T: Default,
source§fn default() -> VerticalLine<T>
fn default() -> VerticalLine<T>
Returns the “default value” for a type. Read more
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<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> Hash for VerticalLine<T>where
T: Hash,
impl<T> Hash for VerticalLine<T>where
T: Hash,
source§impl<T> Ord for VerticalLine<T>where
T: Ord,
impl<T> Ord for VerticalLine<T>where
T: Ord,
source§fn cmp(&self, other: &VerticalLine<T>) -> Ordering
fn cmp(&self, other: &VerticalLine<T>) -> 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 for VerticalLine<T>where
T: PartialEq,
impl<T> PartialEq for VerticalLine<T>where
T: PartialEq,
source§fn eq(&self, other: &VerticalLine<T>) -> bool
fn eq(&self, other: &VerticalLine<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> PartialOrd for VerticalLine<T>where
T: PartialOrd,
impl<T> PartialOrd for VerticalLine<T>where
T: PartialOrd,
source§fn partial_cmp(&self, other: &VerticalLine<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &VerticalLine<T>) -> 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 for VerticalLine<T>where
T: Copy,
impl<T> Eq for VerticalLine<T>where
T: Eq,
impl<T> StructuralEq for VerticalLine<T>
impl<T> StructuralPartialEq for VerticalLine<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for VerticalLine<T>where
T: RefUnwindSafe,
impl<T> Send for VerticalLine<T>where
T: Send,
impl<T> Sync for VerticalLine<T>where
T: Sync,
impl<T> Unpin for VerticalLine<T>where
T: Unpin,
impl<T> UnwindSafe for VerticalLine<T>where
T: UnwindSafe,
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