#[repr(C)]pub struct DoublyLinkedListNode<T> {
pub next: UnsafeCell<*mut T>,
pub prev: UnsafeCell<*mut T>,
}Expand description
A node in a doubly linked list.
Fields§
§next: UnsafeCell<*mut T>The next element in the list.
prev: UnsafeCell<*mut T>The previous element in the list.
Implementations§
Source§impl<T> DoublyLinkedListNode<T>
impl<T> DoublyLinkedListNode<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 DoublyLinkedListNode<T>
impl<T> Debug for DoublyLinkedListNode<T>
Source§impl<T> Default for DoublyLinkedListNode<T>
impl<T> Default for DoublyLinkedListNode<T>
Source§impl<T> Drop for DoublyLinkedListNode<T>
impl<T> Drop for DoublyLinkedListNode<T>
Auto Trait Implementations§
impl<T> !Freeze for DoublyLinkedListNode<T>
impl<T> !RefUnwindSafe for DoublyLinkedListNode<T>
impl<T> !Send for DoublyLinkedListNode<T>
impl<T> !Sync for DoublyLinkedListNode<T>
impl<T> Unpin for DoublyLinkedListNode<T>
impl<T> UnsafeUnpin for DoublyLinkedListNode<T>
impl<T> UnwindSafe for DoublyLinkedListNode<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