Struct cairo_lang_syntax::attribute::structured::Attribute
source · pub struct Attribute {
pub stable_ptr: AttributePtr,
pub id: SmolStr,
pub id_stable_ptr: ExprPathPtr,
pub args: Vec<AttributeArg>,
pub args_stable_ptr: OptionArgListParenthesizedPtr,
}
Expand description
Easier to digest representation of an ast::Attribute.
Fields§
§stable_ptr: AttributePtr
§id: SmolStr
§id_stable_ptr: ExprPathPtr
§args: Vec<AttributeArg>
§args_stable_ptr: OptionArgListParenthesizedPtr
Trait Implementations§
source§impl<'a> DebugWithDb<dyn SyntaxGroup + 'a> for Attribute
impl<'a> DebugWithDb<dyn SyntaxGroup + 'a> for Attribute
source§impl PartialEq for Attribute
impl PartialEq for Attribute
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<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
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.§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.