Struct Node

pub(in ::collections::linked_list) struct Node<T> { pub(in ::collections::linked_list) next: Option<NonNull<Node<T>>>, pub(in ::collections::linked_list) prev: Option<NonNull<Node<T>>>, pub(in ::collections::linked_list) element: T }

Fields

next: Option<NonNull<Node<T>>>
prev: Option<NonNull<Node<T>>>
element: T

Implementations

impl<T> Node<T>

fn new(element: T) -> Self
fn into_element<A: Allocator>(self: Box<Self, A>) -> T

Auto Trait Implementations

impl<T> !Send for Node<T>

impl<T> !Sync for Node<T>

impl<T> Freeze for Node<T> where Option<NonNull<Node<T>>>: Freeze + Freeze, T: Freeze,

impl<T> RefUnwindSafe for Node<T> where Option<NonNull<Node<T>>>: RefUnwindSafe + RefUnwindSafe, T: RefUnwindSafe,

impl<T> Unpin for Node<T> where Option<NonNull<Node<T>>>: Unpin + Unpin, T: Unpin,

impl<T> UnsafeUnpin for Node<T> where Option<NonNull<Node<T>>>: UnsafeUnpin + UnsafeUnpin, T: UnsafeUnpin,

impl<T> UnwindSafe for Node<T> where Option<NonNull<Node<T>>>: UnwindSafe + UnwindSafe, T: UnwindSafe,

Blanket Implementations

impl<T> Any for Node<T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Node<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Node<T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Node<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for Node<T> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for Node<T>

impl<T, U> Into<U> for Node<T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Node<T> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for Node<T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>