pub struct PureAttribute {
pub path: String,
pub meta: PureAttrMeta,
pub is_inner: bool,
}Expand description
An attribute (e.g., #[derive(Debug)]).
Fields§
§path: StringThe attribute path (e.g., “derive”, “cfg”).
meta: PureAttrMetaThe meta content.
is_inner: boolIs this an inner attribute (#![...])?
Trait Implementations§
Source§impl Clone for PureAttribute
impl Clone for PureAttribute
Source§fn clone(&self) -> PureAttribute
fn clone(&self) -> PureAttribute
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 PureAttribute
impl Debug for PureAttribute
Source§impl PartialEq for PureAttribute
impl PartialEq for PureAttribute
Source§fn eq(&self, other: &PureAttribute) -> bool
fn eq(&self, other: &PureAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ToSyn for PureAttribute
impl ToSyn for PureAttribute
impl Eq for PureAttribute
impl StructuralPartialEq for PureAttribute
Auto Trait Implementations§
impl Freeze for PureAttribute
impl RefUnwindSafe for PureAttribute
impl Send for PureAttribute
impl Sync for PureAttribute
impl Unpin for PureAttribute
impl UnsafeUnpin for PureAttribute
impl UnwindSafe for PureAttribute
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