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 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<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§impl<T> PartialOrd for VerticalLine<T>where
T: PartialOrd,
impl<T> PartialOrd for VerticalLine<T>where
T: PartialOrd,
impl<T> Copy for VerticalLine<T>where
T: Copy,
impl<T> Eq for VerticalLine<T>where
T: Eq,
impl<T> StructuralPartialEq for VerticalLine<T>
Auto Trait Implementations§
impl<T> Freeze for VerticalLine<T>where
T: Freeze,
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