pub struct Cursor { /* private fields */ }Implementations§
Source§impl Cursor
impl Cursor
pub fn new(length: usize) -> Self
pub fn back(&self) -> Self
pub fn take_back(&mut self) -> &mut Self
pub fn to_back(&mut self) -> &mut Self
pub fn first(&self) -> Self
pub fn take_first(&mut self) -> &mut Self
pub fn to_first(&mut self) -> &mut Self
pub fn last(&self) -> Self
pub fn take_last(&mut self) -> &mut Self
pub fn to_last(&mut self) -> &mut Self
pub fn next(&self) -> Self
pub fn take_next(&mut self) -> &mut Self
pub fn to_next(&mut self) -> &mut Self
pub fn as_index(&self) -> usize
pub fn as_position(&self) -> Option<usize>
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
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