[][src]Trait veho::vector::Mappers

pub trait Mappers: IntoIterator {
    pub fn mapper<F, T>(self, f: F) -> Vec<T>
    where
        Self: Sized,
        F: FnMut(Self::Item) -> T
, { ... }
pub fn iterate<F>(self, mut f: F)
    where
        Self: Sized,
        F: FnMut(Self::Item)
, { ... }
pub fn mutate<'a, T: 'a, F>(self, mut f: F)
    where
        Self: IntoIterator<Item = &'a mut T, IntoIter = IterMut<'a, T>> + Sized,
        F: FnMut(&mut T)
, { ... }
pub fn indexed_mapper<F, T>(self, mut f: F) -> Vec<T>
    where
        Self: Sized,
        F: FnMut(usize, Self::Item) -> T
, { ... }
pub fn indexed_iterate<F>(self, mut f: F)
    where
        Self: Sized,
        F: FnMut(usize, Self::Item)
, { ... }
pub fn indexed_mutate<'a, T: 'a, F>(self, mut f: F)
    where
        Self: IntoIterator<Item = &'a mut T, IntoIter = IterMut<'a, T>> + Sized,
        F: FnMut(usize, &mut T)
, { ... } }

Provided methods

pub fn mapper<F, T>(self, f: F) -> Vec<T> where
    Self: Sized,
    F: FnMut(Self::Item) -> T, 
[src]

pub fn iterate<F>(self, mut f: F) where
    Self: Sized,
    F: FnMut(Self::Item), 
[src]

pub fn mutate<'a, T: 'a, F>(self, mut f: F) where
    Self: IntoIterator<Item = &'a mut T, IntoIter = IterMut<'a, T>> + Sized,
    F: FnMut(&mut T), 
[src]

pub fn indexed_mapper<F, T>(self, mut f: F) -> Vec<T> where
    Self: Sized,
    F: FnMut(usize, Self::Item) -> T, 
[src]

pub fn indexed_iterate<F>(self, mut f: F) where
    Self: Sized,
    F: FnMut(usize, Self::Item), 
[src]

pub fn indexed_mutate<'a, T: 'a, F>(self, mut f: F) where
    Self: IntoIterator<Item = &'a mut T, IntoIter = IterMut<'a, T>> + Sized,
    F: FnMut(usize, &mut T), 
[src]

Loading content...

Implementors

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

Loading content...