pub enum Dialect {
Xsd,
Xpath,
Xpath20,
}Expand description
Source-level dialect. XSD §F.1 forbids ^ and $ (patterns
are implicitly whole-input anchored); XPath 2.0 §7.6 keeps the
XSD grammar but adds them back as explicit anchors usable
anywhere in the pattern.
Variants§
Xsd
XSD Part 2 §F — what xs:pattern facets compile under.
Xpath
XPath 2.0 §7.6 — what fn:matches, fn:replace,
fn:tokenize, and xsl:analyze-string compile under in
XSLT 3.0+ hosts. Adds explicit anchors ^ / $ and
non-capturing (?:...) groups on top of the XSD grammar.
Xpath20
XPath 2.0 §7.6 strict — same as Dialect::Xpath but
without the XPath 3.0 extensions ((?:…) / inline flags).
Used by XSLT 2.0 hosts where the W3C conformance suite
expects FORX0002 on the 3.0 extensions.
Trait Implementations§
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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