Struct solang_parser::pt::ErrorDefinition
source · pub struct ErrorDefinition {
pub loc: Loc,
pub keyword: Expression,
pub name: Option<Identifier>,
pub fields: Vec<ErrorParameter>,
}
Expand description
An error definition.
error <name> (<fields>,*);
Fields§
§loc: Loc
The code location.
keyword: Expression
The error
keyword.
name: Option<Identifier>
The identifier.
This field is None
only if an error occurred during parsing.
fields: Vec<ErrorParameter>
The list of error parameters.
Trait Implementations§
source§impl Clone for ErrorDefinition
impl Clone for ErrorDefinition
source§fn clone(&self) -> ErrorDefinition
fn clone(&self) -> ErrorDefinition
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 ErrorDefinition
impl CodeLocation for ErrorDefinition
source§impl Debug for ErrorDefinition
impl Debug for ErrorDefinition
source§impl Display for ErrorDefinition
impl Display for ErrorDefinition
source§impl PartialEq for ErrorDefinition
impl PartialEq for ErrorDefinition
source§fn eq(&self, other: &ErrorDefinition) -> bool
fn eq(&self, other: &ErrorDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ErrorDefinition
impl StructuralEq for ErrorDefinition
impl StructuralPartialEq for ErrorDefinition
Auto Trait Implementations§
impl RefUnwindSafe for ErrorDefinition
impl Send for ErrorDefinition
impl Sync for ErrorDefinition
impl Unpin for ErrorDefinition
impl UnwindSafe for ErrorDefinition
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