pub enum UnicodeVersion {
Latest,
V6_0,
V9_0,
}Expand description
Which Unicode snapshot the regex engine should consult when
resolving \p{…} properties. Latest defers to the
unicode-properties crate (production code path); the older
variants force lookup against the bundled snapshots.
Variants§
Latest
Whatever unicode-properties ships — what real consumers
of the library actually want (current Unicode at build time).
V6_0
Unicode 6.0.0 — required by W3C regex-classes conformance.
V9_0
Unicode 9.0.0 — required by W3C unicode-90 conformance.
Trait Implementations§
Source§impl Clone for UnicodeVersion
impl Clone for UnicodeVersion
Source§fn clone(&self) -> UnicodeVersion
fn clone(&self) -> UnicodeVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnicodeVersion
Source§impl Debug for UnicodeVersion
impl Debug for UnicodeVersion
Source§impl Default for UnicodeVersion
impl Default for UnicodeVersion
Source§fn default() -> UnicodeVersion
fn default() -> UnicodeVersion
Returns the “default value” for a type. Read more
impl Eq for UnicodeVersion
Source§impl Hash for UnicodeVersion
impl Hash for UnicodeVersion
Source§impl PartialEq for UnicodeVersion
impl PartialEq for UnicodeVersion
Source§fn eq(&self, other: &UnicodeVersion) -> bool
fn eq(&self, other: &UnicodeVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnicodeVersion
Auto Trait Implementations§
impl Freeze for UnicodeVersion
impl RefUnwindSafe for UnicodeVersion
impl Send for UnicodeVersion
impl Sync for UnicodeVersion
impl Unpin for UnicodeVersion
impl UnsafeUnpin for UnicodeVersion
impl UnwindSafe for UnicodeVersion
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