pub struct AttrItem {
pub path: Path,
pub args: AttrArgs,
pub tokens: Option<LazyAttrTokenStream>,
}
Fields§
§path: Path
§args: AttrArgs
§tokens: Option<LazyAttrTokenStream>
Implementations§
Trait Implementations§
source§impl HasAttrs for AttrItem
impl HasAttrs for AttrItem
source§const SUPPORTS_CUSTOM_INNER_ATTRS: bool = false
const SUPPORTS_CUSTOM_INNER_ATTRS: bool = false
This is
true
if this HasAttrs
might support ‘custom’ (proc-macro) inner
attributes. Attributes like #![cfg]
and #![cfg_attr]
are not
considered ‘custom’ attributes. Read morefn attrs(&self) -> &[Attribute]
fn visit_attrs(&mut self, _f: impl FnOnce(&mut AttrVec))
source§impl HasTokens for AttrItem
impl HasTokens for AttrItem
fn tokens(&self) -> Option<&LazyAttrTokenStream>
fn tokens_mut(&mut self) -> Option<&mut Option<LazyAttrTokenStream>>
source§impl<__CTX> HashStable<__CTX> for AttrItemwhere
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for AttrItemwhere
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
Auto Trait Implementations§
impl !RefUnwindSafe for AttrItem
impl !Send for AttrItem
impl !Sync for AttrItem
impl Unpin for AttrItem
impl !UnwindSafe for AttrItem
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes