icu_properties::props

Trait NamedEnumeratedProperty

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

Source

fn try_from_str(s: &str) -> Option<Self>

Convenience method for PropertyParser::new().get_loose(s)

Enabled with the compiled_data Cargo feature.

Source

fn long_name(&self) -> &'static str

Convenience method for PropertyNamesLong::new().get(*self).unwrap()

Enabled with the compiled_data Cargo feature.

Source

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.

Implementors§