pub enum RegexCompat {
Strict,
LenientMs,
}Expand description
Regex compatibility mode.
Controls how strictly the pattern facet grammar is enforced. The default
Strict rejects any construct outside XSD Part 2 §F (1.0) / §G (1.1)
regex grammar. LenientMs enables a closed list of safely-stripable MS
dialect leniencies for schemas authored against .NET’s regex engine —
see doc/INTRODUCTION.md for the exact construct list.
This is an enum (not a bool) so future modes can be added without breaking the API.
Variants§
Strict
Strict XSD Part 2 regex grammar. Default.
LenientMs
Tolerate a closed list of MS dialect leniencies (anchors at
pattern start/end, (?#...) comments). See doc/INTRODUCTION.md.
Trait Implementations§
Source§impl Clone for RegexCompat
impl Clone for RegexCompat
Source§fn clone(&self) -> RegexCompat
fn clone(&self) -> RegexCompat
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 RegexCompat
Source§impl Debug for RegexCompat
impl Debug for RegexCompat
Source§impl Default for RegexCompat
impl Default for RegexCompat
Source§fn default() -> RegexCompat
fn default() -> RegexCompat
Returns the “default value” for a type. Read more
impl Eq for RegexCompat
Source§impl PartialEq for RegexCompat
impl PartialEq for RegexCompat
Source§fn eq(&self, other: &RegexCompat) -> bool
fn eq(&self, other: &RegexCompat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RegexCompat
Auto Trait Implementations§
impl Freeze for RegexCompat
impl RefUnwindSafe for RegexCompat
impl Send for RegexCompat
impl Sync for RegexCompat
impl Unpin for RegexCompat
impl UnsafeUnpin for RegexCompat
impl UnwindSafe for RegexCompat
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