pub enum NameClass {
Name {
namespace: String,
local: String,
},
AnyName(Option<Box<NameClass>>),
NsName {
namespace: String,
except: Option<Box<NameClass>>,
},
Choice(Box<NameClass>, Box<NameClass>),
Nothing,
}Expand description
A RelaxNG name class — a predicate over (namespace_uri, local_name) pairs.
Variants§
Name
<name ns="X">local</name> — exactly this name.
AnyName(Option<Box<NameClass>>)
<anyName/> (optionally with <except>...</except>).
NsName
<nsName ns="X"/> — any local name in the given namespace.
Choice(Box<NameClass>, Box<NameClass>)
<choice> of name classes.
Nothing
Internal: matches nothing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NameClass
impl RefUnwindSafe for NameClass
impl Send for NameClass
impl Sync for NameClass
impl Unpin for NameClass
impl UnsafeUnpin for NameClass
impl UnwindSafe for NameClass
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