Trait ForeachTarget

Source
pub trait ForeachTarget {
    type JumpTarget;

    // Required methods
    fn foreach_target<F>(&self, f: F)
       where F: FnMut(&Self::JumpTarget);
    fn foreach_target_mut<F>(&mut self, f: F)
       where F: FnMut(&mut Self::JumpTarget);
}

Required Associated Types§

Required Methods§

Source

fn foreach_target<F>(&self, f: F)
where F: FnMut(&Self::JumpTarget),

Source

fn foreach_target_mut<F>(&mut self, f: F)
where F: FnMut(&mut Self::JumpTarget),

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C, T> ForeachTarget for C
where for<'a> &'a C: IntoIterator<Item = &'a T>, for<'a> &'a mut C: IntoIterator<Item = &'a mut T>, T: ForeachTarget,

Source§

impl<S, C> ForeachTarget for Arena<S, C>
where BasicBlock<S, C, BbId>: ForeachTarget<JumpTarget = BbId>,

Source§

impl<S, C, T> ForeachTarget for BasicBlockInner<S, C, T>
where S: ForeachTarget<JumpTarget = T>, C: ForeachTarget<JumpTarget = T>,

Source§

impl<S, C, T> ForeachTarget for BasicBlock<S, C, T>
where S: ForeachTarget<JumpTarget = T>, C: ForeachTarget<JumpTarget = T>,

Source§

impl<T> ForeachTarget for Unconditional<T>

Source§

impl<T> ForeachTarget for Dummy<T>