pub trait NamedComponent: Sized {
// Required method
fn name(&self) -> Cow<'_, ComponentName>;
}
Expand description
A type that represents a named style component.
Required Methods§
sourcefn name(&self) -> Cow<'_, ComponentName>
fn name(&self) -> Cow<'_, ComponentName>
Returns the name of the style component.
Object Safety§
This trait is not object safe.