pub struct ChangedSpan {
pub before_start: usize,
pub before_end: usize,
pub after_start: usize,
pub after_end: usize,
}Expand description
The minimal span this change set replaces, in pre-image and post-image char
offsets. None for an identity change set.
One span rather than one event per operation: it is what a single incremental
didChange needs, it is cheap on the typing hot path, and it is testable with no
server in the loop (ADR-0011 §6).
Fields§
§before_start: usize§before_end: usize§after_start: usize§after_end: usizeTrait Implementations§
Source§impl Clone for ChangedSpan
impl Clone for ChangedSpan
Source§fn clone(&self) -> ChangedSpan
fn clone(&self) -> ChangedSpan
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 moreimpl Copy for ChangedSpan
Source§impl Debug for ChangedSpan
impl Debug for ChangedSpan
impl Eq for ChangedSpan
Source§impl PartialEq for ChangedSpan
impl PartialEq for ChangedSpan
impl StructuralPartialEq for ChangedSpan
Auto Trait Implementations§
impl Freeze for ChangedSpan
impl RefUnwindSafe for ChangedSpan
impl Send for ChangedSpan
impl Sync for ChangedSpan
impl Unpin for ChangedSpan
impl UnsafeUnpin for ChangedSpan
impl UnwindSafe for ChangedSpan
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