Trait dioxus_signals::Dependency
source · pub trait Dependency: Sized + Clone {
type Out: Clone + PartialEq;
// 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.