pub struct DeclSpecs {
pub storage: Option<StorageClass>,
pub thread_local: bool,
pub ty: TypeSpec,
pub quals: Quals,
pub func: FuncSpecs,
pub align: Option<AlignSpec>,
pub attrs: AttrList,
pub span: Span,
}Expand description
Everything a declaration says before its first declarator.
Fields§
§storage: Option<StorageClass>The storage class, of which there may be at most one.
thread_local: boolWhether _Thread_local was written, which is separate because it is the one storage
class specifier that may be combined with another.
ty: TypeSpecWhat type was named.
quals: QualsThe qualifiers, which may be written before or after the type.
func: FuncSpecsinline and _Noreturn.
align: Option<AlignSpec>alignas, of which there may be several, of which the strictest wins. Only the first is
kept here; the rest are in the side table alongside it.
attrs: AttrListAttributes that appertain to the declaration as a whole.
span: SpanFrom the first specifier to the last.
Implementations§
Trait Implementations§
impl Copy for DeclSpecs
impl Eq for DeclSpecs
impl StructuralPartialEq for DeclSpecs
Auto Trait Implementations§
impl Freeze for DeclSpecs
impl RefUnwindSafe for DeclSpecs
impl Send for DeclSpecs
impl Sync for DeclSpecs
impl Unpin for DeclSpecs
impl UnsafeUnpin for DeclSpecs
impl UnwindSafe for DeclSpecs
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