#[repr(u8)]pub enum UnderlineStyle {
None = 0,
Single = 1,
Double = 2,
Curly = 3,
Dotted = 4,
Dashed = 5,
}Expand description
Underline shape encoded in SGR underline parameters.
Use Style::underline for the common single underline or
Style::underline_style to select an explicit shape. None
means no underline; it emits no parameter when writing a full Style and
emits SGR 24 when a diff needs to clear an existing underline.
Variants§
None = 0
No underline.
Single = 1
Single underline (SGR 4 or 4:1 when parsed).
Double = 2
Double underline (SGR 4:2; SGR 21 is parsed as this variant).
Curly = 3
Curly underline (SGR 4:3).
Dotted = 4
Dotted underline (SGR 4:4).
Dashed = 5
Dashed underline (SGR 4:5).
Trait Implementations§
Source§impl Clone for UnderlineStyle
impl Clone for UnderlineStyle
Source§fn clone(&self) -> UnderlineStyle
fn clone(&self) -> UnderlineStyle
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 moreSource§impl Debug for UnderlineStyle
impl Debug for UnderlineStyle
Source§impl Default for UnderlineStyle
impl Default for UnderlineStyle
Source§fn default() -> UnderlineStyle
fn default() -> UnderlineStyle
Returns the “default value” for a type. Read more
Source§impl Hash for UnderlineStyle
impl Hash for UnderlineStyle
Source§impl PartialEq for UnderlineStyle
impl PartialEq for UnderlineStyle
Source§fn eq(&self, other: &UnderlineStyle) -> bool
fn eq(&self, other: &UnderlineStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for UnderlineStyle
impl Eq for UnderlineStyle
impl StructuralPartialEq for UnderlineStyle
Auto Trait Implementations§
impl Freeze for UnderlineStyle
impl RefUnwindSafe for UnderlineStyle
impl Send for UnderlineStyle
impl Sync for UnderlineStyle
impl Unpin for UnderlineStyle
impl UnsafeUnpin for UnderlineStyle
impl UnwindSafe for UnderlineStyle
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