Trait unicode_security::mixed_script::MixedScript

source ·
pub trait MixedScript {
    // Required methods
    fn is_single_script(self) -> bool;
    fn resolve_script_set(self) -> AugmentedScriptSet;
}
Expand description

Extension trait for mixed-script detection

Required Methods§

source

fn is_single_script(self) -> bool

Check if a string is single-script

Note that a single-script string may still contain multiple Script properties!

source

fn resolve_script_set(self) -> AugmentedScriptSet

Find the resolved script set of a given string

Implementations on Foreign Types§

source§

impl MixedScript for &str

Implementors§