ssa_traits

Trait HasValues

Source
pub trait HasValues<F: Func + ?Sized> {
    // Required methods
    fn values<'a>(&'a self, f: &'a F) -> Box<dyn Iterator<Item = F::Value> + 'a>;
    fn values_mut<'a>(
        &'a mut self,
        g: &'a mut F,
    ) -> Box<dyn Iterator<Item = &'a mut F::Value> + 'a>
       where F: 'a;
}

Required Methods§

Source

fn values<'a>(&'a self, f: &'a F) -> Box<dyn Iterator<Item = F::Value> + 'a>

Source

fn values_mut<'a>( &'a mut self, g: &'a mut F, ) -> Box<dyn Iterator<Item = &'a mut F::Value> + 'a>
where F: 'a,

Implementations on Foreign Types§

Source§

impl<F: Func + ?Sized, A: HasValues<F>, B: HasValues<F>> HasValues<F> for Either<A, B>

Source§

fn values<'a>( &'a self, f: &'a F, ) -> Box<dyn Iterator<Item = <F as Func>::Value> + 'a>

Source§

fn values_mut<'a>( &'a mut self, f: &'a mut F, ) -> Box<dyn Iterator<Item = &'a mut <F as Func>::Value> + 'a>
where F: 'a,

Source§

impl<F: Func<Value: Clone> + ?Sized> HasValues<F> for Vec<F::Value>

Source§

fn values<'a>( &'a self, f: &'a F, ) -> Box<dyn Iterator<Item = <F as Func>::Value> + 'a>

Source§

fn values_mut<'a>( &'a mut self, g: &'a mut F, ) -> Box<dyn Iterator<Item = &'a mut <F as Func>::Value> + 'a>
where F: 'a,

Implementors§

Source§

impl<F: Func<Value: Clone> + ?Sized> HasValues<F> for Val<F>