pub enum AttributeMetaVariant {
Any(AnyAttributeMeta),
Type(Ident),
}
Expand description
Variant of a AttributeMeta
Either it’s any attribute or a specific type.
Variants§
Any(AnyAttributeMeta)
The attribute is a xs:anyAttribute
.
Type(Ident)
The attribute has a specific type.
Trait Implementations§
Source§impl Clone for AttributeMetaVariant
impl Clone for AttributeMetaVariant
Source§fn clone(&self) -> AttributeMetaVariant
fn clone(&self) -> AttributeMetaVariant
Returns a duplicate of the value. Read more
1.0.0 · 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 AttributeMetaVariant
impl Debug for AttributeMetaVariant
Source§impl TypeEq for AttributeMetaVariant
impl TypeEq for AttributeMetaVariant
Source§fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &MetaTypes)
fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &MetaTypes)
Feeds this value into the given
Hasher
.Source§fn type_eq(&self, other: &Self, types: &MetaTypes) -> bool
fn type_eq(&self, other: &Self, types: &MetaTypes) -> bool
Check if this instance is equal to the
other
instance using the passed
types
to resolve identifiers.Source§fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &MetaTypes)
fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &MetaTypes)
Feeds a slice of this value into the given
Hasher
.Source§fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &MetaTypes) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &MetaTypes) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
Check if the two passed iterators contain type equal elements.
Auto Trait Implementations§
impl Freeze for AttributeMetaVariant
impl RefUnwindSafe for AttributeMetaVariant
impl Send for AttributeMetaVariant
impl Sync for AttributeMetaVariant
impl Unpin for AttributeMetaVariant
impl UnwindSafe for AttributeMetaVariant
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