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 VerticalOrientation

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]