pub trait Stylable {
type Style: Style;
// Required method
fn style(&self, base: &Self::Style) -> Self::Style;
// Provided method
fn rebuild_style(&self, cx: &mut RebuildCx<'_, '_>, style: &mut Self::Style)
where Self::Style: Rebuild + 'static { ... }
}
Expand description
A trait for stylable objects.