pub trait Dependency: Sized + Clone {
type Out: Clone + PartialEq + 'static;
// Required method
fn out(&self) -> Self::Out;
// Provided method
fn changed(&self, other: &Self::Out) -> bool { ... }
}
Expand description
A dependency is a trait that can be used to determine if a effect or selector should be re-run.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.