pub trait PropertyKey {
// Required method
fn key() -> &'static str;
}Expand description
Trait for types that are associated with property names.
Types that implement this trait will usually also implement PropertyValue.
Required Methods§
Sourcefn key() -> &'static str
fn key() -> &'static str
The lowercase string key for this property.
Used to look up the value in a crate::Properties map.
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.
Implementors§
impl PropertyKey for Charset
impl PropertyKey for EndOfLine
impl PropertyKey for FinalNewline
impl PropertyKey for IndentSize
impl PropertyKey for IndentStyle
impl PropertyKey for MaxLineLen
impl PropertyKey for SpellingLanguage
Available on crate feature
language-tags only.