pub struct VarDeclStmt {
pub ty: TypeExpr,
pub storage_location: Option<StorageLocation>,
pub name: Ident,
pub initializer: Option<Expr>,
pub span: Span,
}Fields§
§ty: TypeExpr§storage_location: Option<StorageLocation>§name: Ident§initializer: Option<Expr>§span: SpanTrait Implementations§
Source§impl Clone for VarDeclStmt
impl Clone for VarDeclStmt
Source§fn clone(&self) -> VarDeclStmt
fn clone(&self) -> VarDeclStmt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VarDeclStmt
impl Debug for VarDeclStmt
Source§impl<'de> Deserialize<'de> for VarDeclStmt
impl<'de> Deserialize<'de> for VarDeclStmt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VarDeclStmt
impl PartialEq for VarDeclStmt
Source§impl Serialize for VarDeclStmt
impl Serialize for VarDeclStmt
impl StructuralPartialEq for VarDeclStmt
Auto Trait Implementations§
impl Freeze for VarDeclStmt
impl RefUnwindSafe for VarDeclStmt
impl Send for VarDeclStmt
impl Sync for VarDeclStmt
impl Unpin for VarDeclStmt
impl UnwindSafe for VarDeclStmt
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