pub struct Cursor<'a> { /* private fields */ }
Implementations§
source§impl<'a> Cursor<'a>
impl<'a> Cursor<'a>
pub fn new(rope: &'a Rope, offset: usize) -> Cursor<'a>
pub fn seek_forward(&mut self, end_offset: usize)
pub fn slice(&mut self, end_offset: usize) -> Rope
pub fn summary<D>(&mut self, end_offset: usize) -> Dwhere D: TextDimension,
pub fn suffix(self) -> Rope
pub fn offset(&self) -> usize
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Cursor<'a>
impl<'a> Send for Cursor<'a>
impl<'a> Sync for Cursor<'a>
impl<'a> Unpin for Cursor<'a>
impl<'a> UnwindSafe for Cursor<'a>
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