Enum move_lang::expansion::ast::Attribute_
source · pub enum Attribute_ {
Name(Name),
Assigned(Name, Box<AttributeValue>),
Parameterized(Name, Vec<Attribute>),
}
Variants§
Implementations§
source§impl Attribute_
impl Attribute_
pub fn attribute_name(&self) -> &Name
Trait Implementations§
source§impl Clone for Attribute_
impl Clone for Attribute_
source§fn clone(&self) -> Attribute_
fn clone(&self) -> Attribute_
Returns a copy 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 Attribute_
impl Debug for Attribute_
source§impl PartialEq<Attribute_> for Attribute_
impl PartialEq<Attribute_> for Attribute_
source§fn eq(&self, other: &Attribute_) -> bool
fn eq(&self, other: &Attribute_) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Attribute_
impl StructuralEq for Attribute_
impl StructuralPartialEq for Attribute_
Auto Trait Implementations§
impl RefUnwindSafe for Attribute_
impl Send for Attribute_
impl Sync for Attribute_
impl Unpin for Attribute_
impl UnwindSafe for Attribute_
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.