PropertyKey

Trait PropertyKey 

Source
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§

Source

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§