#[repr(C)]pub struct SinglyLinkedListNode<T> {
pub next: UnsafeCell<*mut T>,
}Expand description
A node in a singly linked list.
Fields§
§next: UnsafeCell<*mut T>The next element in the list. This is null if the node is not in a container. This is a sentinel value (1) if the node is the last element of the list.
Implementations§
Source§impl<T> SinglyLinkedListNode<T>
impl<T> SinglyLinkedListNode<T>
Sourcepub fn in_container(&self) -> bool
pub fn in_container(&self) -> bool
Returns true if the node is currently in a list.
Trait Implementations§
Source§impl<T> Debug for SinglyLinkedListNode<T>
impl<T> Debug for SinglyLinkedListNode<T>
Source§impl<T> Default for SinglyLinkedListNode<T>
impl<T> Default for SinglyLinkedListNode<T>
Source§impl<T> Drop for SinglyLinkedListNode<T>
impl<T> Drop for SinglyLinkedListNode<T>
Auto Trait Implementations§
impl<T> !Freeze for SinglyLinkedListNode<T>
impl<T> !RefUnwindSafe for SinglyLinkedListNode<T>
impl<T> !Send for SinglyLinkedListNode<T>
impl<T> !Sync for SinglyLinkedListNode<T>
impl<T> Unpin for SinglyLinkedListNode<T>
impl<T> UnsafeUnpin for SinglyLinkedListNode<T>
impl<T> UnwindSafe for SinglyLinkedListNode<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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more