#[non_exhaustive]pub struct GutterDecoration { /* private fields */ }Expand description
A mark that the editor draws in a strip of the gutter, before the line numbers.
A non-empty range marks every line it touches. This matches Monaco’s
linesDecorationsClassName
with isWholeLine. An empty range marks a line boundary, such as where lines
were deleted. When the range is at the start of a line, the mark appears above
that line. Otherwise it appears below the line.
The default is an empty range at the start of the document, a boundary above the first line, in the editor foreground color.
Implementations§
Source§impl GutterDecoration
impl GutterDecoration
Sourcepub fn color(&self) -> Option<Hsla>
pub fn color(&self) -> Option<Hsla>
The application color override, or None to use the editor fallback.
Sourcepub fn folded_color(&self) -> Option<Hsla>
pub fn folded_color(&self) -> Option<Hsla>
The color for the bar when the range starts inside a fold, or None to
use Self::color.
Sourcepub fn with_color(self, color: Hsla) -> Self
pub fn with_color(self, color: Hsla) -> Self
Set the color instead of the editor foreground fallback.
Sourcepub fn with_folded_color(self, color: Hsla) -> Self
pub fn with_folded_color(self, color: Hsla) -> Self
Set the color for the bar on a fold’s row when the range starts inside that fold.
Trait Implementations§
Source§impl Clone for GutterDecoration
impl Clone for GutterDecoration
Source§impl Debug for GutterDecoration
impl Debug for GutterDecoration
Source§impl Default for GutterDecoration
impl Default 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
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().