Struct solang_parser::pt::EventParameter
source · pub struct EventParameter {
pub loc: Loc,
pub ty: Expression,
pub indexed: bool,
pub name: Option<Identifier>,
}
Expand description
An event parameter.
<ty> [indexed] [name]
Fields§
§loc: Loc
The code location.
ty: Expression
The type.
indexed: bool
Whether this parameter is indexed.
name: Option<Identifier>
The optional identifier.
Trait Implementations§
source§impl Clone for EventParameter
impl Clone for EventParameter
source§fn clone(&self) -> EventParameter
fn clone(&self) -> EventParameter
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 EventParameter
impl CodeLocation for EventParameter
source§impl Debug for EventParameter
impl Debug for EventParameter
source§impl Display for EventParameter
impl Display for EventParameter
source§impl PartialEq for EventParameter
impl PartialEq for EventParameter
source§fn eq(&self, other: &EventParameter) -> bool
fn eq(&self, other: &EventParameter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EventParameter
impl StructuralPartialEq for EventParameter
Auto Trait Implementations§
impl Freeze for EventParameter
impl RefUnwindSafe for EventParameter
impl Send for EventParameter
impl Sync for EventParameter
impl Unpin for EventParameter
impl UnwindSafe for EventParameter
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more