pub trait LocalName {
const KEY: &'static str;
// Provided methods
fn local_name(lang: Lang, region: Option<Region>) -> &'static str { ... }
fn local_name_in(styles: StyleChain<'_>) -> &'static str
where Self: Sized { ... }
}
Expand description
The name with which an element is referenced.
Required Associated Constants§
Provided Methods§
Sourcefn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
Get the name in the given language and (optionally) region.
Sourcefn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Gets the local name from the style chain.
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.