pub enum DecorationKind {
Selection,
Cursor,
Underline,
Strikeout,
Overline,
Background,
BlockBackground,
TableBorder,
TableCellBackground,
}Expand description
The type of a DecorationRect.
Variants§
Selection
Selection highlight (translucent background behind selected text).
Cursor
Cursor caret (thin vertical line at the insertion point).
Underline
Underline (below baseline, from font metrics).
Strikeout
Strikethrough (at x-height, from font metrics).
Overline
Overline (at ascent line).
Background
Generic background (e.g., frame borders).
BlockBackground
Block-level background color.
TableBorder
Table border line.
TableCellBackground
Table cell background color.
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 · 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 DecorationKind
impl Debug for DecorationKind
Source§impl PartialEq for DecorationKind
impl PartialEq for DecorationKind
impl Copy for DecorationKind
impl Eq 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