Enum rustc_parse::parser::attr::InnerAttrForbiddenReason
source · [−]pub enum InnerAttrForbiddenReason {
InCodeBlock,
AfterOuterDocComment {
prev_doc_comment_span: Span,
},
AfterOuterAttribute {
prev_outer_attr_sp: Span,
},
}
Variants
InCodeBlock
AfterOuterDocComment
Fields
prev_doc_comment_span: Span
AfterOuterAttribute
Fields
prev_outer_attr_sp: Span
Trait Implementations
sourceimpl Clone for InnerAttrForbiddenReason
impl Clone for InnerAttrForbiddenReason
sourcefn clone(&self) -> InnerAttrForbiddenReason
fn clone(&self) -> InnerAttrForbiddenReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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