#[repr(u8)]pub enum LongPatternProfileV1 {
BinaryUtf8V1 = 1,
UnicodeFoldV1 = 2,
}Expand description
Frozen matching profile.
Variants§
BinaryUtf8V1 = 1
Compare canonical UTF-8 directly.
UnicodeFoldV1 = 2
Apply the frozen Unicode fold before comparison.
Implementations§
Source§impl LongPatternProfileV1
impl LongPatternProfileV1
Sourcepub const fn from_discriminant(value: u8) -> Option<Self>
pub const fn from_discriminant(value: u8) -> Option<Self>
Decodes a stable profile discriminant.
Sourcepub fn matched_form(self, value: &str) -> String
pub fn matched_form(self, value: &str) -> String
Produces the exact retained matched form.
Trait Implementations§
Source§impl Clone for LongPatternProfileV1
impl Clone for LongPatternProfileV1
impl Copy for LongPatternProfileV1
Source§impl Debug for LongPatternProfileV1
impl Debug for LongPatternProfileV1
impl Eq for LongPatternProfileV1
Source§impl Hash for LongPatternProfileV1
impl Hash for LongPatternProfileV1
Source§impl Ord for LongPatternProfileV1
impl Ord for LongPatternProfileV1
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LongPatternProfileV1
impl PartialEq for LongPatternProfileV1
Source§impl PartialOrd for LongPatternProfileV1
impl PartialOrd for LongPatternProfileV1
impl StructuralPartialEq for LongPatternProfileV1
Auto Trait Implementations§
impl Freeze for LongPatternProfileV1
impl RefUnwindSafe for LongPatternProfileV1
impl Send for LongPatternProfileV1
impl Sync for LongPatternProfileV1
impl Unpin for LongPatternProfileV1
impl UnsafeUnpin for LongPatternProfileV1
impl UnwindSafe for LongPatternProfileV1
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