pub struct RangeDecoration { /* private fields */ }Expand description
A geometric decoration over a UTF-8 byte range.
Implementations§
Source§impl RangeDecoration
impl RangeDecoration
Sourcepub fn range(&self) -> &Range<usize> ⓘ
pub fn range(&self) -> &Range<usize> ⓘ
The half-open UTF-8 byte range supplied to this decoration.
Sourcepub fn style(&self) -> RangeDecorationStyle
pub fn style(&self) -> RangeDecorationStyle
The geometric paint style.
Sourcepub fn color(&self) -> Option<Hsla>
pub fn color(&self) -> Option<Hsla>
An application-owned color override, or None for the editor fallback.
Sourcepub fn with_style(self, style: RangeDecorationStyle) -> Self
pub fn with_style(self, style: RangeDecorationStyle) -> Self
Choose a fill or frame without changing text layout.
Sourcepub fn with_color(self, color: Hsla) -> Self
pub fn with_color(self, color: Hsla) -> Self
Override the editor foreground fallback with an application-owned color.
Trait Implementations§
Source§impl Clone for RangeDecoration
impl Clone for RangeDecoration
Source§impl Debug for RangeDecoration
impl Debug for RangeDecoration
Source§impl PartialEq for RangeDecoration
impl PartialEq for RangeDecoration
impl StructuralPartialEq for RangeDecoration
Auto Trait Implementations§
impl Freeze for RangeDecoration
impl RefUnwindSafe for RangeDecoration
impl Send for RangeDecoration
impl Sync for RangeDecoration
impl Unpin for RangeDecoration
impl UnsafeUnpin for RangeDecoration
impl UnwindSafe for RangeDecoration
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,
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 more