pub trait NamedEnumeratedProperty: ParseableEnumeratedProperty {
// Provided methods
fn try_from_str(s: &str) -> Option<Self> { ... }
fn long_name(&self) -> &'static str { ... }
fn short_name(&self) -> &'static str { ... }
}
Expand description
A property whose value names can be represented as strings.
Provided Methods§
Sourcefn try_from_str(s: &str) -> Option<Self>
fn try_from_str(s: &str) -> Option<Self>
Convenience method for PropertyParser::new().get_loose(s)
✨ Enabled with the compiled_data
Cargo feature.
Sourcefn long_name(&self) -> &'static str
fn long_name(&self) -> &'static str
Convenience method for PropertyNamesLong::new().get(*self).unwrap()
✨ Enabled with the compiled_data
Cargo feature.
Sourcefn short_name(&self) -> &'static str
fn short_name(&self) -> &'static str
Convenience method for PropertyNamesShort::new().get(*self).unwrap()
✨ Enabled with the compiled_data
Cargo feature.
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.