Struct afrim_memory::Cursor
source · pub struct Cursor { /* private fields */ }Expand description
The Cursor permit to keep a track of the move in the memory.
Implementations§
source§impl Cursor
impl Cursor
sourcepub fn hit(&mut self, character: char) -> Option<String>
pub fn hit(&mut self, character: char) -> Option<String>
Enter a character in the sequence and return his corresponding out.
sourcepub fn undo(&mut self) -> Option<String>
pub fn undo(&mut self) -> Option<String>
Remove the last node and return his corresponding out.
sourcepub fn to_sequence(&self) -> Vec<char>
pub fn to_sequence(&self) -> Vec<char>
Return the current sequence in the cursor.
Trait Implementations§
Auto Trait Implementations§
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