pub enum DecorationKind {
Underline,
LineThrough,
Overline,
}Expand description
DecorationKind selects where a text decoration is drawn.
Variants§
Underline
Underline draws below the baseline using the font’s underline metrics.
LineThrough
LineThrough draws through the text using the font’s strikeout metrics.
Overline
Overline draws above the text.
Trait Implementations§
Source§impl Clone for DecorationKind
impl Clone for DecorationKind
Source§fn clone(&self) -> DecorationKind
fn clone(&self) -> DecorationKind
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 DecorationKind
Source§impl Debug for DecorationKind
impl Debug for DecorationKind
impl Eq for DecorationKind
Source§impl PartialEq for DecorationKind
impl PartialEq for DecorationKind
impl StructuralPartialEq for DecorationKind
Auto Trait Implementations§
impl Freeze for DecorationKind
impl RefUnwindSafe for DecorationKind
impl Send for DecorationKind
impl Sync for DecorationKind
impl Unpin for DecorationKind
impl UnsafeUnpin for DecorationKind
impl UnwindSafe for DecorationKind
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