pub enum NamespaceConstraint {
Any,
Other,
Enumeration(Vec<Option<NameId>>),
Not(Vec<Option<NameId>>),
}Expand description
Namespace constraint for wildcards
Specifies which namespaces are allowed by a wildcard.
Variants§
Any
Any namespace allowed (##any)
Other
Other namespaces allowed (##other) - excludes target namespace
Enumeration(Vec<Option<NameId>>)
Specific set of namespaces None in the set represents “no namespace” (##local)
Not(Vec<Option<NameId>>)
Not these namespaces (XSD 1.1 notNamespace)
Implementations§
Trait Implementations§
Source§impl Clone for NamespaceConstraint
impl Clone for NamespaceConstraint
Source§fn clone(&self) -> NamespaceConstraint
fn clone(&self) -> NamespaceConstraint
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 moreSource§impl Debug for NamespaceConstraint
impl Debug for NamespaceConstraint
Source§impl Default for NamespaceConstraint
impl Default for NamespaceConstraint
Source§fn default() -> NamespaceConstraint
fn default() -> NamespaceConstraint
Returns the “default value” for a type. Read more
impl Eq for NamespaceConstraint
Source§impl PartialEq for NamespaceConstraint
impl PartialEq for NamespaceConstraint
Source§fn eq(&self, other: &NamespaceConstraint) -> bool
fn eq(&self, other: &NamespaceConstraint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NamespaceConstraint
Auto Trait Implementations§
impl Freeze for NamespaceConstraint
impl RefUnwindSafe for NamespaceConstraint
impl Send for NamespaceConstraint
impl Sync for NamespaceConstraint
impl Unpin for NamespaceConstraint
impl UnsafeUnpin for NamespaceConstraint
impl UnwindSafe for NamespaceConstraint
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