Trait stylecs::DynamicComponent
source · pub trait DynamicComponent: Any + Debug + Send + Sync + UnwindSafe + RefUnwindSafe + 'static {
// Required method
fn name(&self) -> Name;
// Provided methods
fn inherited(&self) -> bool { ... }
fn merge(&mut self, other: &Self) { ... }
}
Expand description
A style component that can be powered by data contained in the structure.
This trait allows style components to be defined that didn’t originate from Rust code – e.g., a scripting language.
Required Methods§
Provided Methods§
sourcefn inherited(&self) -> bool
fn inherited(&self) -> bool
Returns whether the component should be inherited. Affects the behavior
of Style::inherited_from