pub struct IndexSet { /* private fields */ }
Implementations§
Source§impl IndexSet
impl IndexSet
Sourcepub fn union_one_range(&mut self, start: usize, end: usize)
pub fn union_one_range(&mut self, start: usize, end: usize)
Add the range start..end to the set.
Sourcepub fn delete_range(&mut self, start: usize, end: usize)
pub fn delete_range(&mut self, start: usize, end: usize)
Deletes the given range from the set.
Sourcepub fn minus_one_range(&self, start: usize, end: usize) -> MinusIter<'_> ⓘ
pub fn minus_one_range(&self, start: usize, end: usize) -> MinusIter<'_> ⓘ
Return an iterator that yields start..end minus the coverage in this set.
Sourcepub fn apply_delta(&self, delta: &RopeDelta) -> IndexSet
pub fn apply_delta(&self, delta: &RopeDelta) -> IndexSet
Computes a new set based on applying a delta to the old set. Collapsed regions are removed and contiguous regions are combined.
Auto Trait Implementations§
impl Freeze for IndexSet
impl RefUnwindSafe for IndexSet
impl Send for IndexSet
impl Sync for IndexSet
impl Unpin for IndexSet
impl UnwindSafe for IndexSet
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