pub struct LinkNode<T: Copy> {
pub next: *mut LinkNode<T>,
pub prev: *mut *mut LinkNode<T>,
pub data: T,
}Expand description
Fields§
§next: *mut LinkNode<T>Pointing the next node. If this is the last node, the field will be null.
prev: *mut *mut LinkNode<T>Pointing the previous node’s next field. If this is the first node,
the field will point to the head’s head field.
data: TThe data stored in the link list, with the type T.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LinkNode<T>where
T: Freeze,
impl<T> RefUnwindSafe for LinkNode<T>where
T: RefUnwindSafe,
impl<T> !Send for LinkNode<T>
impl<T> !Sync for LinkNode<T>
impl<T> Unpin for LinkNode<T>where
T: Unpin,
impl<T> UnwindSafe for LinkNode<T>where
T: UnwindSafe + 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)