Enum rustc_parse::parser::attr::InnerAttrForbiddenReason
source · pub enum InnerAttrForbiddenReason {
InCodeBlock,
AfterOuterDocComment {
prev_doc_comment_span: Span,
},
AfterOuterAttribute {
prev_outer_attr_sp: Span,
},
}
Variants§
Trait Implementations§
source§impl Clone for InnerAttrForbiddenReason
impl Clone for InnerAttrForbiddenReason
source§fn clone(&self) -> InnerAttrForbiddenReason
fn clone(&self) -> InnerAttrForbiddenReason
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 InnerAttrForbiddenReason
impl Debug for InnerAttrForbiddenReason
impl Copy for InnerAttrForbiddenReason
Auto Trait Implementations§
impl RefUnwindSafe for InnerAttrForbiddenReason
impl !Send for InnerAttrForbiddenReason
impl !Sync for InnerAttrForbiddenReason
impl Unpin for InnerAttrForbiddenReason
impl UnwindSafe for InnerAttrForbiddenReason
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: 12 bytes
Size for each variant:
InCodeBlock
: 0 bytesAfterOuterDocComment
: 8 bytesAfterOuterAttribute
: 8 bytes