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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.