pub struct AverList<T> { /* private fields */ }Implementations§
Source§impl<T> AverList<T>
impl<T> AverList<T>
pub fn empty() -> Self
pub fn from_vec(items: Vec<T>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<&T>
pub fn first(&self) -> Option<&T>
pub fn as_slice(&self) -> Option<&[T]>
pub fn iter(&self) -> AverListIter<'_, T> ⓘ
pub fn tail(&self) -> Option<Self>
pub fn prepend(item: T, list: &Self) -> Self
pub fn concat(left: &Self, right: &Self) -> Self
pub fn append(list: &Self, item: T) -> Self
pub fn to_vec(&self) -> Vec<T>where
T: Clone,
pub fn reverse(&self) -> Selfwhere
T: Clone,
pub fn contains(&self, item: &T) -> boolwhere
T: PartialEq,
Trait Implementations§
Source§impl<T: AverDisplay> AverDisplay for AverList<T>
impl<T: AverDisplay> AverDisplay for AverList<T>
fn aver_display(&self) -> String
fn aver_display_inner(&self) -> String
Source§impl<'a, T> IntoIterator for &'a AverList<T>
impl<'a, T> IntoIterator for &'a AverList<T>
Source§impl<T: Clone> IntoIterator for AverList<T>
impl<T: Clone> IntoIterator for AverList<T>
impl<T: Eq> Eq for AverList<T>
Auto Trait Implementations§
impl<T> Freeze for AverList<T>
impl<T> RefUnwindSafe for AverList<T>where
T: RefUnwindSafe,
impl<T> !Send for AverList<T>
impl<T> !Sync for AverList<T>
impl<T> Unpin for AverList<T>
impl<T> UnsafeUnpin for AverList<T>
impl<T> UnwindSafe for AverList<T>where
T: RefUnwindSafe,
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