pub struct TrackedRange {
pub id: DecorationId,
pub range: Range<u32>,
pub kind: DecorationKind,
pub stickiness: Stickiness,
}Expand description
One tracked range: a DecorationId, a current-revision byte Range, its
DecorationKind, and its Stickiness.
Because the store is moved eagerly on every commit, range is always in
“now” coordinates — no cross-revision Anchor wrapper is needed.
Fields§
§id: DecorationIdStable identity, minted at insertion.
range: Range<u32>Current-revision byte offsets [start, end).
kind: DecorationKindWhat this decoration is (and its content, for diagnostics).
stickiness: StickinessHow each endpoint reacts to an edit at its boundary.
Trait Implementations§
Source§impl Clone for TrackedRange
impl Clone for TrackedRange
Source§fn clone(&self) -> TrackedRange
fn clone(&self) -> TrackedRange
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 Freeze for TrackedRange
impl RefUnwindSafe for TrackedRange
impl Send for TrackedRange
impl Sync for TrackedRange
impl Unpin for TrackedRange
impl UnsafeUnpin for TrackedRange
impl UnwindSafe for TrackedRange
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