Struct papergrid::config::HorizontalLine
source · pub struct HorizontalLine<T> {
pub main: Option<T>,
pub intersection: Option<T>,
pub left: Option<T>,
pub right: Option<T>,
}
Expand description
A structure for a custom horizontal line.
Fields§
§main: Option<T>
Line character.
intersection: Option<T>
Line intersection character.
left: Option<T>
Left intersection character.
right: Option<T>
Right intersection character.
Implementations§
Trait Implementations§
source§impl<T: Clone> Clone for HorizontalLine<T>
impl<T: Clone> Clone for HorizontalLine<T>
source§fn clone(&self) -> HorizontalLine<T>
fn clone(&self) -> HorizontalLine<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> Debug for HorizontalLine<T>
impl<T: Debug> Debug for HorizontalLine<T>
source§impl<T: Default> Default for HorizontalLine<T>
impl<T: Default> Default for HorizontalLine<T>
source§fn default() -> HorizontalLine<T>
fn default() -> HorizontalLine<T>
Returns the “default value” for a type. Read more
source§impl<T: Hash> Hash for HorizontalLine<T>
impl<T: Hash> Hash for HorizontalLine<T>
source§impl<T: Ord> Ord for HorizontalLine<T>
impl<T: Ord> Ord for HorizontalLine<T>
source§fn cmp(&self, other: &HorizontalLine<T>) -> Ordering
fn cmp(&self, other: &HorizontalLine<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> PartialEq for HorizontalLine<T>
impl<T: PartialEq> PartialEq for HorizontalLine<T>
source§fn eq(&self, other: &HorizontalLine<T>) -> bool
fn eq(&self, other: &HorizontalLine<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd for HorizontalLine<T>
impl<T: PartialOrd> PartialOrd for HorizontalLine<T>
source§fn partial_cmp(&self, other: &HorizontalLine<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &HorizontalLine<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> Copy for HorizontalLine<T>
impl<T: Eq> Eq for HorizontalLine<T>
impl<T> StructuralPartialEq for HorizontalLine<T>
Auto Trait Implementations§
impl<T> Freeze for HorizontalLine<T>where
T: Freeze,
impl<T> RefUnwindSafe for HorizontalLine<T>where
T: RefUnwindSafe,
impl<T> Send for HorizontalLine<T>where
T: Send,
impl<T> Sync for HorizontalLine<T>where
T: Sync,
impl<T> Unpin for HorizontalLine<T>where
T: Unpin,
impl<T> UnwindSafe for HorizontalLine<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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)