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§
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),
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.