pub struct InitDeclarator {
pub declarator: DeclaratorId,
pub init: Option<InitId>,
pub asm_label: Option<StrId>,
pub attrs: AttrList,
pub span: Span,
}Expand description
One declarator of a declaration, with whatever follows it.
Fields§
§declarator: DeclaratorIdThe declarator.
init: Option<InitId>The initializer, if there was one.
asm_label: Option<StrId>An asm("name") label, which is how a declaration is given an assembler name that is
not its identifier. Common in the C library headers and in the kernel.
attrs: AttrListAttributes written after this declarator, which appertain to it alone and not to the declarators beside it.
span: SpanFrom the start of the declarator to the end of the initializer.
Trait Implementations§
Source§impl Clone for InitDeclarator
impl Clone for InitDeclarator
Source§fn clone(&self) -> InitDeclarator
fn clone(&self) -> InitDeclarator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InitDeclarator
Source§impl Debug for InitDeclarator
impl Debug for InitDeclarator
impl Eq 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