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

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

Fields

head: ListLink<'a, T>

Methods

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>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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