pub struct NamePattern { /* private fields */ }Expand description
A regular expression over whole property-set or property names.
The syntax is the regex crate’s; callers holding an XML Schema pattern
translate it first (axioval_rules::translate_xsd_pattern). The pattern
always matches a whole name. Two patterns are equal when their text is.
Implementations§
Source§impl NamePattern
impl NamePattern
Sourcepub fn new(pattern: impl Into<String>) -> Result<Self, PropertyResolutionError>
pub fn new(pattern: impl Into<String>) -> Result<Self, PropertyResolutionError>
Compiles pattern to match whole names.
§Errors
PropertyResolutionError::InvalidRequest when the pattern does not
compile.
Trait Implementations§
Source§impl Clone for NamePattern
impl Clone for NamePattern
Source§impl Debug for NamePattern
impl Debug for NamePattern
impl Eq for NamePattern
Source§impl Ord for NamePattern
impl Ord for NamePattern
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 NamePattern
impl PartialEq for NamePattern
Auto Trait Implementations§
impl Freeze for NamePattern
impl RefUnwindSafe for NamePattern
impl Send for NamePattern
impl Sync for NamePattern
impl Unpin for NamePattern
impl UnsafeUnpin for NamePattern
impl UnwindSafe for NamePattern
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