pub enum BorderType {
Square,
Ascii,
Rounded,
Double,
Heavy,
Custom(BorderSet),
}Expand description
Border style presets.
Variants§
Square
No border (but space reserved if Borders::ALL is set).
Ascii
ASCII fallback border.
Rounded
Single line border with rounded corners.
Double
Double line border.
Heavy
Heavy line border.
Custom(BorderSet)
Custom border character set.
Implementations§
Source§impl BorderType
impl BorderType
Sourcepub fn to_border_set(&self) -> BorderSet
pub fn to_border_set(&self) -> BorderSet
Convert this border type to its corresponding border character set.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BorderType
Source§impl Debug for BorderType
impl Debug for BorderType
Source§impl Default for BorderType
impl Default for BorderType
Source§fn default() -> BorderType
fn default() -> BorderType
Returns the “default value” for a type. Read more
impl Eq for BorderType
Source§impl PartialEq for BorderType
impl PartialEq for BorderType
Source§fn eq(&self, other: &BorderType) -> bool
fn eq(&self, other: &BorderType) -> bool
Tests for
self and other values to be equal, and is used by ==.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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.