[][src]Struct buddy_system_allocator::linked_list::LinkedList

pub struct LinkedList { /* fields omitted */ }

An intrusive linked list

A clean room implementation of the one used in CS140e 2018 Winter

Thanks Sergio Benitez for his excellent work, See CS140e for more information

Methods

impl LinkedList[src]

pub const fn new() -> LinkedList[src]

Create a new LinkedList

pub fn is_empty(&self) -> bool[src]

Return true if the list is empty

pub unsafe fn push(&mut self, item: *mut usize)[src]

Push item to the front of the list

pub fn pop(&mut self) -> Option<*mut usize>[src]

Try to remove the first item in the list

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

Return an iterator over the items in the list

Important traits for IterMut<'a>
pub fn iter_mut(&mut self) -> IterMut[src]

Return an mutable iterator over the items in the list

Trait Implementations

impl Clone for LinkedList[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for LinkedList[src]

impl Send for LinkedList[src]

impl Copy for LinkedList[src]

Auto Trait Implementations

impl !Sync for LinkedList

Blanket Implementations

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto 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, U> Into for T where
    U: From<T>, 
[src]

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T