pub struct MapResult {
pub pos: usize,
/* private fields */
}Expand description
The result of mapping a single position: the new position plus information about whether the content around it was deleted.
Fields§
§pos: usizeThe mapped position.
Implementations§
Source§impl MapResult
impl MapResult
Sourcepub fn deleted(&self) -> bool
pub fn deleted(&self) -> bool
Whether the position itself fell inside deleted content (on the associated side).
Sourcepub fn deleted_before(&self) -> bool
pub fn deleted_before(&self) -> bool
Whether content directly before the position was deleted.
Sourcepub fn deleted_after(&self) -> bool
pub fn deleted_after(&self) -> bool
Whether content directly after the position was deleted.
Sourcepub fn deleted_across(&self) -> bool
pub fn deleted_across(&self) -> bool
Whether the position sat strictly inside deleted content.
Trait Implementations§
impl Copy for MapResult
impl Eq for MapResult
impl StructuralPartialEq for MapResult
Auto Trait Implementations§
impl Freeze for MapResult
impl RefUnwindSafe for MapResult
impl Send for MapResult
impl Sync for MapResult
impl Unpin for MapResult
impl UnsafeUnpin for MapResult
impl UnwindSafe for MapResult
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