[][src]Trait unicode_security::restriction_level::RestrictionLevelDetection

pub trait RestrictionLevelDetection: Sized {
    fn detect_restriction_level(self) -> RestrictionLevel;

    fn check_restriction_level(self, level: RestrictionLevel) -> bool { ... }
}

Utilities for determining which restriction level a string satisfies

Required methods

fn detect_restriction_level(self) -> RestrictionLevel

Detect the restriction level

This will not check identifier well-formedness, as different applications may have different notions of well-formedness

Loading content...

Provided methods

fn check_restriction_level(self, level: RestrictionLevel) -> bool

Check if a string satisfies the supplied restriction level

This will not check identifier well-formedness, as different applications may have different notions of well-formedness

Loading content...

Implementors

impl<'_> RestrictionLevelDetection for &'_ str[src]

Loading content...