cfg_traits

Trait Term

Source
pub trait Term<F: Func + ?Sized> {
    type Target: Target<F>;

    // Required methods
    fn targets<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Self::Target> + 'a>
       where F: 'a;
    fn targets_mut<'a>(
        &'a mut self,
    ) -> Box<dyn Iterator<Item = &'a mut Self::Target> + 'a>
       where F: 'a;
}

Required Associated Types§

Required Methods§

Source

fn targets<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Self::Target> + 'a>
where F: 'a,

Source

fn targets_mut<'a>( &'a mut self, ) -> Box<dyn Iterator<Item = &'a mut Self::Target> + 'a>
where F: 'a,

Implementations on Foreign Types§

Source§

impl<F: Func + ?Sized, T: Target<F>, A: Term<F, Target = T>, B: Term<F, Target = T>> Term<F> for Either<A, B>

Source§

type Target = T

Source§

fn targets<'a>(&'a self) -> Box<dyn Iterator<Item = &'a T> + 'a>
where F: 'a,

Source§

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

Implementors§