[][src]Struct kernel::common::list::List

pub struct List<'a, T: 'a + ?Sized + ListNode<'a, T>> {
    head: ListLink<'a, T>,


head: ListLink<'a, T>


impl<'a, T: ?Sized + ListNode<'a, T>> List<'a, T>[src]

pub const fn new() -> List<'a, T>[src]

pub fn head(&self) -> Option<&'a T>[src]

pub fn push_head(&self, node: &'a T)[src]

pub fn push_tail(&self, node: &'a T)[src]

pub fn pop_head(&self) -> Option<&'a T>[src]

Important traits for ListIterator<'a, T>
pub fn iter(&self) -> ListIterator<'a, T>[src]

Auto Trait Implementations

impl<'a, T: ?Sized> Unpin for List<'a, T>

impl<'a, T: ?Sized> Send for List<'a, T> where
    T: Sync

impl<'a, T> !Sync for List<'a, T>

Blanket Implementations

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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