icu::properties::props

Trait EnumeratedProperty

Source
pub trait EnumeratedProperty: Sealed + TrieValue {
    const NAME: &'static [u8];
    const SHORT_NAME: &'static [u8];

    // Provided method
    fn for_char(ch: char) -> Self { ... }
}
Expand description

A Unicode character property that assigns a value to each code point.

The descriptions of most properties are taken from TR44, the documentation for the Unicode Character Database.

🚫 This trait is sealed; it cannot be implemented by user code. If an API requests an item that implements this trait, please consider using a type from the implementors listed below.

Required Associated Constants§

Source

const NAME: &'static [u8]

The name of this property

Source

const SHORT_NAME: &'static [u8]

The abbreviated name of this property, if it exists, otherwise the name

Provided Methods§

Source

fn for_char(ch: char) -> Self

Convenience method for CodePointMapData::new().get(ch)

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§

Source§

impl EnumeratedProperty for GeneralCategory

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for BidiClass

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for BidiMirroringGlyph

Source§

const NAME: &'static [u8] = b"Bidi_Mirroring_Glyph"

Source§

const SHORT_NAME: &'static [u8] = b"Bidi_Mirroring_Glyph"

Source§

impl EnumeratedProperty for CanonicalCombiningClass

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for EastAsianWidth

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for GraphemeClusterBreak

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for HangulSyllableType

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for IndicSyllabicCategory

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for JoiningType

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for LineBreak

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for Script

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for SentenceBreak

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]

Source§

impl EnumeratedProperty for WordBreak

Source§

const NAME: &'static [u8]

Source§

const SHORT_NAME: &'static [u8]