pub enum RestrictionLevel {
ASCIIOnly,
SingleScript,
HighlyRestrictive,
ModeratelyRestrictive,
MinimallyRestrictive,
Unrestricted,
}
Expand description
The Restriction level a string conforms to
Variants§
ASCIIOnly
https://www.unicode.org/reports/tr39/#ascii_only
SingleScript
https://www.unicode.org/reports/tr39/#single_script
HighlyRestrictive
https://www.unicode.org/reports/tr39/#highly_restrictive
ModeratelyRestrictive
https://www.unicode.org/reports/tr39/#moderately_restrictive
MinimallyRestrictive
https://www.unicode.org/reports/tr39/#minimally_restrictive
Unrestricted
https://www.unicode.org/reports/tr39/#unrestricted
Trait Implementations§
source§impl Clone for RestrictionLevel
impl Clone for RestrictionLevel
source§fn clone(&self) -> RestrictionLevel
fn clone(&self) -> RestrictionLevel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RestrictionLevel
impl Debug for RestrictionLevel
source§impl Hash for RestrictionLevel
impl Hash for RestrictionLevel
source§impl Ord for RestrictionLevel
impl Ord for RestrictionLevel
source§fn cmp(&self, other: &RestrictionLevel) -> Ordering
fn cmp(&self, other: &RestrictionLevel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RestrictionLevel
impl PartialEq for RestrictionLevel
source§impl PartialOrd for RestrictionLevel
impl PartialOrd for RestrictionLevel
impl Copy for RestrictionLevel
impl Eq for RestrictionLevel
impl StructuralPartialEq for RestrictionLevel
Auto Trait Implementations§
impl Freeze for RestrictionLevel
impl RefUnwindSafe for RestrictionLevel
impl Send for RestrictionLevel
impl Sync for RestrictionLevel
impl Unpin for RestrictionLevel
impl UnwindSafe for RestrictionLevel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)