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 duplicate 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
impl Eq for EventDefinition
impl StructuralPartialEq for EventDefinition
Auto Trait Implementations§
impl Freeze for EventDefinition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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