Trait BinaryProperty

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

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

A binary Unicode character property.

The descriptions of most properties are taken from TR44, the documentation for the Unicode Character Database. Some properties are instead defined in TR18, the documentation for Unicode regular expressions. In particular, Annex C of this document defines properties for POSIX compatibility.

๐Ÿšซ 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) -> bool

Convenience method for CodePointSetData::new().contains(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 BinaryProperty for Alnum

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Alphabetic

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for AsciiHexDigit

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for BidiControl

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for BidiMirrored

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Blank

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for CaseIgnorable

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for CaseSensitive

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Cased

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for ChangesWhenCasefolded

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for ChangesWhenCasemapped

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for ChangesWhenLowercased

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for ChangesWhenNfkcCasefolded

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for ChangesWhenTitlecased

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for ChangesWhenUppercased

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Dash

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for DefaultIgnorableCodePoint

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Deprecated

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Diacritic

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Emoji

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for EmojiComponent

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for EmojiModifier

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for EmojiModifierBase

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for EmojiPresentation

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for ExtendedPictographic

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Extender

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for FullCompositionExclusion

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Graph

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for GraphemeBase

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for GraphemeExtend

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for HexDigit

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Hyphen

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for IdContinue

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for IdStart

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Ideographic

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for IdsBinaryOperator

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for IdsTrinaryOperator

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for JoinControl

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for LogicalOrderException

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Lowercase

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Math

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for NfcInert

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for NfdInert

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for NfkcInert

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for NfkdInert

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for NoncharacterCodePoint

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for PatternSyntax

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for PatternWhiteSpace

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for PrependedConcatenationMark

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Print

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for QuotationMark

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Radical

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for RegionalIndicator

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for SegmentStarter

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for SentenceTerminal

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for SoftDotted

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for TerminalPunctuation

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for UnifiedIdeograph

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Uppercase

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for VariationSelector

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for WhiteSpace

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for Xdigit

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for XidContinue

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]

Sourceยง

impl BinaryProperty for XidStart

Sourceยง

const NAME: &'static [u8]

Sourceยง

const SHORT_NAME: &'static [u8]