pub struct GutterDecoration {
pub version: u32,
pub line: u32,
pub kind: GutterDecorationKind,
pub color: Option<ColorRole>,
pub id: u64,
pub glyph: u32,
}Expand description
One mark beside a line number, said as a line and never as a picture.
The colour is a role, never a literal, and is left to the design system where it is not given. How big a dot is, how wide a bar and where each sits are always the design system’s.
Fields§
§version: u32The document version the line was written against.
line: u32§kind: GutterDecorationKind§color: Option<ColorRole>§id: u64The application’s own name for it, reported when it is pressed. Zero means it cannot be pressed.
glyph: u32The character a glyph shows, as a Unicode scalar value. Zero for the other kinds.
Implementations§
Source§impl GutterDecoration
impl GutterDecoration
Trait Implementations§
Source§impl Clone for GutterDecoration
impl Clone for GutterDecoration
impl Copy for GutterDecoration
Source§impl Debug for GutterDecoration
impl Debug for GutterDecoration
impl Eq for GutterDecoration
Source§impl PartialEq for GutterDecoration
impl PartialEq for GutterDecoration
impl StructuralPartialEq for GutterDecoration
Auto Trait Implementations§
impl Freeze for GutterDecoration
impl RefUnwindSafe for GutterDecoration
impl Send for GutterDecoration
impl Sync for GutterDecoration
impl Unpin for GutterDecoration
impl UnsafeUnpin for GutterDecoration
impl UnwindSafe for GutterDecoration
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