Struct pancake_engine_ssi::ds_n_a::atomic_linked_list::ListSnapshot
source · pub struct ListSnapshot<T> {
head_ptr: Option<NonNullSendPtr<ListNode<T>>>,
tail_ptr: Option<NonNullSendPtr<ListNode<T>>>,
}Expand description
The relationship between any instance of ListSnapshot and any instance of AtomicLinkedList is strictly implicit.
Fields§
§head_ptr: Option<NonNullSendPtr<ListNode<T>>>§tail_ptr: Option<NonNullSendPtr<ListNode<T>>>Implementations§
source§impl<T> ListSnapshot<T>
impl<T> ListSnapshot<T>
pub fn new_unchecked( head_ptr: Option<NonNullSendPtr<ListNode<T>>>, tail_ptr: Option<NonNullSendPtr<ListNode<T>>> ) -> Self
pub fn head_ptr(&self) -> Option<NonNullSendPtr<ListNode<T>>>
sourcepub fn iter<'s, 'iter>(&'s self) -> ListIterator<'iter, T> ⓘ
pub fn iter<'s, 'iter>(&'s self) -> ListIterator<'iter, T> ⓘ
Including head. Excluding tail.
Auto Trait Implementations§
impl<T> RefUnwindSafe for ListSnapshot<T>where
T: RefUnwindSafe,
impl<T> Send for ListSnapshot<T>
impl<T> Sync for ListSnapshot<T>
impl<T> Unpin for ListSnapshot<T>
impl<T> UnwindSafe for ListSnapshot<T>where
T: RefUnwindSafe,
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