pub struct RangeDecorationCollection { /* private fields */ }Expand description
An independently managed collection of geometric range decorations.
Clones address the same collection. Dropping a handle does not clear it; use
Self::clear to empty it or Self::dispose to release it permanently.
Operations on a disposed collection or a dropped editor are harmless no-ops.
Implementations§
Source§impl RangeDecorationCollection
impl RangeDecorationCollection
Sourcepub fn set(&self, decorations: Vec<RangeDecoration>, cx: &mut App)
pub fn set(&self, decorations: Vec<RangeDecoration>, cx: &mut App)
Replace only this owner’s decorations, clipping ranges to UTF-8 boundaries.
Sourcepub fn append(&self, decorations: Vec<RangeDecoration>, cx: &mut App)
pub fn append(&self, decorations: Vec<RangeDecoration>, cx: &mut App)
Append decorations, preserving their paint order.
Trait Implementations§
Source§impl Clone for RangeDecorationCollection
impl Clone for RangeDecorationCollection
Source§fn clone(&self) -> RangeDecorationCollection
fn clone(&self) -> RangeDecorationCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RangeDecorationCollection
impl !UnwindSafe for RangeDecorationCollection
impl Freeze for RangeDecorationCollection
impl Send for RangeDecorationCollection
impl Sync for RangeDecorationCollection
impl Unpin for RangeDecorationCollection
impl UnsafeUnpin for RangeDecorationCollection
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