pub struct VarDeclarator {
pub span: Span,
pub name: String,
pub initializer: Option<Expr>,
}Expand description
One declared variable, optionally with an initializer.
Fields§
§span: SpanSource span covering the declarator.
name: StringVariable name.
initializer: Option<Expr>Optional initializer expression.
Trait Implementations§
Source§impl Clone for VarDeclarator
impl Clone for VarDeclarator
Source§fn clone(&self) -> VarDeclarator
fn clone(&self) -> VarDeclarator
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 VarDeclarator
impl Debug for VarDeclarator
Source§impl<'de> Deserialize<'de> for VarDeclarator
impl<'de> Deserialize<'de> for VarDeclarator
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 VarDeclarator
impl PartialEq for VarDeclarator
Source§impl Serialize for VarDeclarator
impl Serialize for VarDeclarator
impl StructuralPartialEq for VarDeclarator
Auto Trait Implementations§
impl Freeze for VarDeclarator
impl RefUnwindSafe for VarDeclarator
impl Send for VarDeclarator
impl Sync for VarDeclarator
impl Unpin for VarDeclarator
impl UnsafeUnpin for VarDeclarator
impl UnwindSafe for VarDeclarator
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