IsNormalized in unicode_normalization - Rust (original) (raw)

pub enum IsNormalized {
    Yes,
    No,
    Maybe,
}

Expand description

QuickCheck quickly determines if a string is normalized, it can returnMaybe

The QuickCheck algorithm can quickly determine if a text is or isn’t normalized without any allocations in many cases, but it has to be able to return Maybe when a full decomposition and recomposition is necessary.

§

The text is definitely normalized.

§

The text is definitely not normalized.

§

The text may be normalized.

Source§

Source§

Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

Source§

§

§

§

§

§

§