#[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§
§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