pub struct VarDecl {
pub type_spec: TypeSpec,
pub name: String,
pub dimensions: Vec<Expr>,
pub init: Option<Expr>,
pub span: Span,
}Fields§
§type_spec: TypeSpec§name: String§dimensions: Vec<Expr>Array dimensions, e.g. int arr[10] → [IntLit(10)].
init: Option<Expr>§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for VarDecl
impl RefUnwindSafe for VarDecl
impl Send for VarDecl
impl Sync for VarDecl
impl Unpin for VarDecl
impl UnsafeUnpin for VarDecl
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