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§fn eq(&self, other: &RestrictionLevel) -> bool
fn eq(&self, other: &RestrictionLevel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for RestrictionLevel
impl PartialOrd for RestrictionLevel
source§fn partial_cmp(&self, other: &RestrictionLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &RestrictionLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for RestrictionLevel
impl Eq for RestrictionLevel
impl StructuralPartialEq for RestrictionLevel
Auto Trait Implementations§
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