unic_char_property

Trait BinaryCharProperty

Source
pub trait BinaryCharProperty: CharProperty {
    // Required method
    fn as_bool(&self) -> bool;

    // Provided methods
    fn abbr_name(&self) -> &'static str { ... }
    fn long_name(&self) -> &'static str { ... }
    fn human_name(&self) -> &'static str { ... }
}
Expand description

A Character Property with binary values.

Examples: Alphabetic, Bidi_Mirrored, White_Space

Required Methods§

Source

fn as_bool(&self) -> bool

The boolean value of the property value.

Provided Methods§

Source

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

The abbreviated name of the property value.

Source

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

The long name of the property value.

Source

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

The human-readable name of the property value.

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§