pub enum ComponentKind {
SimpleType,
ComplexType,
Element,
Attribute,
ModelGroup,
AttributeGroup,
Notation,
IdentityConstraint,
}Expand description
Classification of a top-level schema component.
Variants§
Implementations§
Source§impl ComponentKind
impl ComponentKind
Sourcepub fn display_name(self) -> &'static str
pub fn display_name(self) -> &'static str
Human-readable label for diagnostic messages (e.g. “simple type”, “attribute group”).
Trait Implementations§
Source§impl Clone for ComponentKind
impl Clone for ComponentKind
Source§fn clone(&self) -> ComponentKind
fn clone(&self) -> ComponentKind
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 moreimpl Copy for ComponentKind
Source§impl Debug for ComponentKind
impl Debug for ComponentKind
impl Eq for ComponentKind
Source§impl Hash for ComponentKind
impl Hash for ComponentKind
Source§impl PartialEq for ComponentKind
impl PartialEq for ComponentKind
Source§fn eq(&self, other: &ComponentKind) -> bool
fn eq(&self, other: &ComponentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentKind
Auto Trait Implementations§
impl Freeze for ComponentKind
impl RefUnwindSafe for ComponentKind
impl Send for ComponentKind
impl Sync for ComponentKind
impl Unpin for ComponentKind
impl UnsafeUnpin for ComponentKind
impl UnwindSafe for ComponentKind
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