Struct orx_linked_list::Singly
source · pub struct Singly<M = MemoryReclaimOnThreshold<2>>where
M: MemoryReclaimPolicy,{ /* private fields */ }
Expand description
A singly linked list variant such that:
- Each node contains two data elements: the value of the element and a reference to the next node.
- The list keeps track of its
front
. - It is possible to iterate from the
front
to the back of the list.
Trait Implementations§
source§impl<'a, T, M> Variant<'a, T> for Singly<M>where
T: 'a,
M: 'a + MemoryReclaimPolicy,
impl<'a, T, M> Variant<'a, T> for Singly<M>where
T: 'a,
M: 'a + MemoryReclaimPolicy,
§type Storage = NodeDataLazyClose<T>
type Storage = NodeDataLazyClose<T>
The way the data will be stored. Read more
§type Prev = NodeRefNone
type Prev = NodeRefNone
The way the previous node references will be stored. Read more
§type Next = NodeRefSingle<'a, Singly<M>, T>
type Next = NodeRefSingle<'a, Singly<M>, T>
The way the next node references will be stored. Read more
§type Ends = NodeRefsArray<'a, 2, Singly<M>, T>
type Ends = NodeRefsArray<'a, 2, Singly<M>, T>
The way the references to the ends or extremes of the collection will be stored. Read more
§type MemoryReclaim = M
type MemoryReclaim = M
The way how memory of closed nodes will be reclaimed: Read more
impl<M> Copy for Singly<M>where
M: MemoryReclaimPolicy + Copy,
Auto Trait Implementations§
impl<M> Freeze for Singly<M>
impl<M> RefUnwindSafe for Singly<M>where
M: RefUnwindSafe,
impl<M> Send for Singly<M>where
M: Send,
impl<M> Sync for Singly<M>where
M: Sync,
impl<M> Unpin for Singly<M>where
M: Unpin,
impl<M> UnwindSafe for Singly<M>where
M: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)