#[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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
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 moreSource§fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
First initializes the value using
self then calls the function f with the initialized
value. Read more