pub struct Pattern {
source: String,
matcher: Option<Regex>,
}Expand description
A pattern facet: what the XSD wrote, and the matcher it translates to.
Constructing one never fails. A pattern this build cannot express is held
unchecked and reported by Schema::unchecked_patterns, because refusing to
load a schema over one exotic pattern would stop a gateway that otherwise
converts every message in the catalog.
Fields§
§source: String§matcher: Option<Regex>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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