Struct solang_parser::pt::NamedArgument
source · pub struct NamedArgument {
pub loc: Loc,
pub name: Identifier,
pub expr: Expression,
}Expand description
A named argument.
<name>: <expr>
Fields§
§loc: LocThe code location.
name: IdentifierThe identifier.
expr: ExpressionThe value.
Trait Implementations§
source§impl Clone for NamedArgument
impl Clone for NamedArgument
source§fn clone(&self) -> NamedArgument
fn clone(&self) -> NamedArgument
Returns a copy 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 CodeLocation for NamedArgument
impl CodeLocation for NamedArgument
source§impl Debug for NamedArgument
impl Debug for NamedArgument
source§impl Display for NamedArgument
impl Display for NamedArgument
source§impl OptionalCodeLocation for NamedArgument
impl OptionalCodeLocation for NamedArgument
source§impl PartialEq<NamedArgument> for NamedArgument
impl PartialEq<NamedArgument> for NamedArgument
source§fn eq(&self, other: &NamedArgument) -> bool
fn eq(&self, other: &NamedArgument) -> bool
This method tests for
self and other values to be equal, and is used
by ==.