Struct ds_list::ForwardList
source · pub struct ForwardList<T> { /* private fields */ }Implementations§
source§impl<T> ForwardList<T>where
T: PartialOrd,
impl<T> ForwardList<T>where
T: PartialOrd,
pub fn new() -> Self
pub fn push_front(&mut self, data: T)
pub fn push_back(&mut self, data: T)
pub fn pop_front(&mut self) -> Result<T, &'static str>
pub fn pop_back(&mut self) -> Result<T, &'static str>
pub fn is_empty(&self) -> bool
pub fn is_sorted(&self) -> bool
pub fn get(&mut self, index: usize) -> Result<&T, &'static str>
pub fn len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for ForwardList<T>where
T: RefUnwindSafe,
impl<T> Send for ForwardList<T>where
T: Send,
impl<T> Sync for ForwardList<T>where
T: Sync,
impl<T> Unpin for ForwardList<T>
impl<T> UnwindSafe for ForwardList<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more