[−][src]Struct buddy_system_allocator::linked_list::LinkedList
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]
ⓘImportant traits for Iter<'a>
Return an iterator over the items in the list
ⓘImportant traits for IterMut<'a>pub fn iter_mut(&mut self) -> IterMut
[src]
ⓘImportant traits for IterMut<'a>
Return an mutable iterator over the items in the list
Trait Implementations
impl Clone for LinkedList
[src]
fn clone(&self) -> 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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,