pub struct DeclaratorResult {
pub name: Option<Ident>,
pub ty: Type,
pub attrs: Attributes,
pub asm_label: Option<Spanned<String>>,
pub range: SourceRange,
}Expand description
The outcome of parsing one declarator.
Fields§
§name: Option<Ident>The declared name, absent for an abstract declarator.
ty: TypeThe type the declarator builds from the base type.
attrs: AttributesWhat __attribute__((…)) on the declarator asked for.
asm_label: Option<Spanned<String>>The symbol __asm__("name") renamed it to.
range: SourceRangeWhere the declarator was written.
Trait Implementations§
Source§impl Clone for DeclaratorResult
impl Clone for DeclaratorResult
Auto Trait Implementations§
impl Freeze for DeclaratorResult
impl RefUnwindSafe for DeclaratorResult
impl Send for DeclaratorResult
impl Sync for DeclaratorResult
impl Unpin for DeclaratorResult
impl UnsafeUnpin for DeclaratorResult
impl UnwindSafe for DeclaratorResult
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