Struct solang_parser::pt::VariableDefinition
source · [−]pub struct VariableDefinition {
pub loc: Loc,
pub ty: Expression,
pub attrs: Vec<VariableAttribute>,
pub name: Identifier,
pub initializer: Option<Expression>,
}
Fields
loc: Loc
ty: Expression
attrs: Vec<VariableAttribute>
name: Identifier
initializer: Option<Expression>
Trait Implementations
sourceimpl Clone for VariableDefinition
impl Clone for VariableDefinition
sourcefn clone(&self) -> VariableDefinition
fn clone(&self) -> VariableDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for VariableDefinition
impl Debug for VariableDefinition
sourceimpl PartialEq<VariableDefinition> for VariableDefinition
impl PartialEq<VariableDefinition> for VariableDefinition
sourcefn eq(&self, other: &VariableDefinition) -> bool
fn eq(&self, other: &VariableDefinition) -> bool
impl Eq for VariableDefinition
impl StructuralEq for VariableDefinition
impl StructuralPartialEq for VariableDefinition
Auto Trait Implementations
impl RefUnwindSafe for VariableDefinition
impl Send for VariableDefinition
impl Sync for VariableDefinition
impl Unpin for VariableDefinition
impl UnwindSafe for VariableDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more