pub struct VarDecl {
pub attributes: Vec<Attribute>,
pub modifiers: Vec<Modifier>,
pub ty: TypeRef,
pub declarators: Vec<Declarator>,
pub span: Span,
}Expand description
One declaration statement: modifiers, a type and one or more names.
Fields§
§attributes: Vec<Attribute>Attributes before the declaration, for example [[vk::binding(0)]].
modifiers: Vec<Modifier>Keywords before the type.
ty: TypeRefThe type of all declarators.
declarators: Vec<Declarator>The declared names.
span: SpanThe whole declaration.
Trait Implementations§
impl StructuralPartialEq for VarDecl
Auto Trait Implementations§
impl Forget for VarDecl
impl Freeze for VarDeclwhere
*const u8 is !null: Freeze,
PhantomData<Attribute>: Freeze,
PhantomData<Modifier>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TypeArg>: Freeze,
PhantomData<Declarator>: Freeze,
impl Move for VarDecl
impl RefUnwindSafe for VarDecl
impl Send for VarDecl
impl Sync for VarDecl
impl Unpin for VarDecl
impl UnsafeUnpin for VarDeclwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Attribute>: UnsafeUnpin,
PhantomData<Modifier>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TypeArg>: UnsafeUnpin,
PhantomData<Declarator>: UnsafeUnpin,
impl UnwindSafe for VarDecl
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