#[non_exhaustive]pub struct OverviewRulerDecoration { /* private fields */ }Expand description
A mark that the editor draws on the vertical scrollbar track for a UTF-8 byte range.
This is the counterpart of Monaco’s
overviewRuler
decoration option. Like a GutterDecoration, an empty range marks a line boundary.
The default is an empty range at the start of the document in the center lane, in the editor foreground color.
Implementations§
Source§impl OverviewRulerDecoration
impl OverviewRulerDecoration
Sourcepub fn new(range: Range<usize>) -> Self
pub fn new(range: Range<usize>) -> Self
Create a mark in the center lane with the editor foreground color.
Sourcepub fn lane(&self) -> OverviewRulerLane
pub fn lane(&self) -> OverviewRulerLane
The lane that this mark uses on the track.
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 with_lane(self, lane: OverviewRulerLane) -> Self
pub fn with_lane(self, lane: OverviewRulerLane) -> Self
Set the lane that this mark uses.
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.
Trait Implementations§
Source§impl Clone for OverviewRulerDecoration
impl Clone for OverviewRulerDecoration
Source§impl Debug for OverviewRulerDecoration
impl Debug for OverviewRulerDecoration
Source§impl Default for OverviewRulerDecoration
impl Default for OverviewRulerDecoration
Source§impl PartialEq for OverviewRulerDecoration
impl PartialEq for OverviewRulerDecoration
impl StructuralPartialEq for OverviewRulerDecoration
Auto Trait Implementations§
impl Freeze for OverviewRulerDecoration
impl RefUnwindSafe for OverviewRulerDecoration
impl Send for OverviewRulerDecoration
impl Sync for OverviewRulerDecoration
impl Unpin for OverviewRulerDecoration
impl UnsafeUnpin for OverviewRulerDecoration
impl UnwindSafe for OverviewRulerDecoration
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
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> ⓘ
Converts
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> ⓘ
Converts
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>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().