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: Loc
The 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: bool
Whether 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 for EventDefinition
impl PartialEq 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 ==
.impl Eq for EventDefinition
impl StructuralEq for EventDefinition
impl StructuralPartialEq for EventDefinition
Auto Trait Implementations§
impl RefUnwindSafe for EventDefinition
impl Send for EventDefinition
impl Sync for EventDefinition
impl Unpin for EventDefinition
impl UnwindSafe for EventDefinition
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