[−][src]Enum fp_collections::list::List
Variants
Methods
impl<T: Eq> List<T>
[src]
pub fn new<A>() -> Self
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn null(&self) -> bool
[src]
pub fn len(&self) -> u32
[src]
impl<T: Clone> List<T>
[src]
pub fn prepend(self, x: T) -> Self
[src]
pub fn append(self, item: T) -> Self
[src]
pub fn concat(self, other: Self) -> Self
[src]
pub fn get(&self, index: u32) -> Option<&T>
[src]
pub fn head(&self) -> Option<&T>
[src]
pub fn tail(&self) -> Self
[src]
pub fn foldl<R>(self, func: fn(_: R, _: T) -> R, init: R) -> R
[src]
pub fn map<R>(self, func: fn(x: T) -> R) -> List<R>
[src]
pub fn filter(self, func: fn(_: &T) -> bool) -> Self
[src]
Trait Implementations
impl<T: Clone> Clone for List<T>
[src]
impl<T: Debug> Debug for List<T>
[src]
impl<T: Eq> Eq for List<T>
[src]
impl<'_, T: Clone> From<&'_ [T]> for List<T>
[src]
impl<'_, T: Clone> From<Iter<'_, T>> for List<T>
[src]
impl<T: PartialEq> PartialEq<List<T>> for List<T>
[src]
impl<T> StructuralEq for List<T>
[src]
impl<T> StructuralPartialEq for List<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for List<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for List<T> where
T: Send,
T: Send,
impl<T> Sync for List<T> where
T: Sync,
T: Sync,
impl<T> Unpin for List<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for List<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,