pub struct InitDeclarator {
pub name: Option<Ident>,
pub ty: Type,
pub init: Option<Initializer>,
pub attrs: Attributes,
pub asm_label: Option<Spanned<String>>,
pub range: SourceRange,
}Expand description
One declarator of a Decl, with its optional initialiser.
Fields§
§name: Option<Ident>The declared name; absent only after error recovery.
ty: TypeThe fully resolved type.
init: Option<Initializer>The initialiser, if any.
attrs: AttributesWhat __attribute__((…)) written on this declarator asked for.
asm_label: Option<Spanned<String>>The symbol __asm__("name") renamed this declaration to.
range: SourceRangeWhere the declarator was written.
Trait Implementations§
Source§impl Clone for InitDeclarator
impl Clone for InitDeclarator
Source§impl Debug for InitDeclarator
impl Debug for InitDeclarator
Source§impl PartialEq for InitDeclarator
impl PartialEq for InitDeclarator
impl StructuralPartialEq for InitDeclarator
Auto Trait Implementations§
impl Freeze for InitDeclarator
impl RefUnwindSafe for InitDeclarator
impl Send for InitDeclarator
impl Sync for InitDeclarator
impl Unpin for InitDeclarator
impl UnsafeUnpin for InitDeclarator
impl UnwindSafe for InitDeclarator
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