struct Cursor<'l, T>(MutexGuard<'l, *mut Node<T>>);Expand description
Reference to the next field of previous node which points to the current node.
For example, given the following linked list:
head -> 1 -> 2 -> 3 -> nullIf cursor is currently at node 2, then cursor.0 should be the MutexGuard obtained from the
next of node 1. In particular, cursor.0.as_ref().unwrap() creates a shared reference to node
2.
Tuple Fields§
§0: MutexGuard<'l, *mut Node<T>>Implementations§
Auto Trait Implementations§
impl<'l, T> Freeze for Cursor<'l, T>
impl<'l, T> RefUnwindSafe for Cursor<'l, T>
impl<'l, T> !Send for Cursor<'l, T>
impl<'l, T> !Sync for Cursor<'l, T>
impl<'l, T> Unpin for Cursor<'l, T>
impl<'l, T> UnwindSafe for Cursor<'l, T>
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