Struct solang_parser::pt::EventDefinition
source · pub struct EventDefinition {
pub loc: Loc,
pub name: Option<Identifier>,
pub fields: Vec<EventParameter>,
pub anonymous: bool,
}Expand description
An event definition.
event <name>(<fields>,*) [anonymous];
Fields§
§loc: LocThe code location.
name: Option<Identifier>The identifier.
This field is None only if an error occurred during parsing.
fields: Vec<EventParameter>The list of event parameters.
anonymous: boolWhether this event is anonymous.
Trait Implementations§
source§impl Clone for EventDefinition
impl Clone for EventDefinition
source§fn clone(&self) -> EventDefinition
fn clone(&self) -> EventDefinition
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 EventDefinition
impl CodeLocation for EventDefinition
source§impl Debug for EventDefinition
impl Debug for EventDefinition
source§impl Display for EventDefinition
impl Display for EventDefinition
source§impl PartialEq<EventDefinition> for EventDefinition
impl PartialEq<EventDefinition> for EventDefinition
source§fn eq(&self, other: &EventDefinition) -> bool
fn eq(&self, other: &EventDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.