#[non_exhaustive]pub enum BorderType {
Solid,
Corners,
Barplot,
}Expand description
Border style for a plot frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Solid
Full box-drawing border: ┌─┐││└─┘.
Corners
Corner-only border with spaces for sides and edges.
Barplot
Barplot border with a tick mark (┤) on the left side.
Implementations§
Source§impl BorderType
impl BorderType
Sourcepub const fn chars(self) -> BorderChars
pub const fn chars(self) -> BorderChars
Returns the eight border characters for this border style.
Trait Implementations§
Source§impl Clone for BorderType
impl Clone for BorderType
Source§fn clone(&self) -> BorderType
fn clone(&self) -> BorderType
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 Debug for BorderType
impl Debug for BorderType
Source§impl Hash for BorderType
impl Hash for BorderType
Source§impl PartialEq for BorderType
impl PartialEq for BorderType
impl Copy for BorderType
impl Eq for BorderType
impl StructuralPartialEq for BorderType
Auto Trait Implementations§
impl Freeze for BorderType
impl RefUnwindSafe for BorderType
impl Send for BorderType
impl Sync for BorderType
impl Unpin for BorderType
impl UnsafeUnpin for BorderType
impl UnwindSafe for BorderType
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