Struct solang_parser::pt::ErrorParameter
source · pub struct ErrorParameter {
pub loc: Loc,
pub ty: Expression,
pub name: Option<Identifier>,
}
Expand description
An error parameter.
<ty> [name]
Fields§
§loc: Loc
The code location.
ty: Expression
The type.
name: Option<Identifier>
The optional identifier.
Trait Implementations§
source§impl Clone for ErrorParameter
impl Clone for ErrorParameter
source§fn clone(&self) -> ErrorParameter
fn clone(&self) -> ErrorParameter
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 ErrorParameter
impl CodeLocation for ErrorParameter
source§impl Debug for ErrorParameter
impl Debug for ErrorParameter
source§impl Display for ErrorParameter
impl Display for ErrorParameter
source§impl PartialEq for ErrorParameter
impl PartialEq for ErrorParameter
source§fn eq(&self, other: &ErrorParameter) -> bool
fn eq(&self, other: &ErrorParameter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ErrorParameter
impl StructuralPartialEq for ErrorParameter
Auto Trait Implementations§
impl Freeze for ErrorParameter
impl RefUnwindSafe for ErrorParameter
impl Send for ErrorParameter
impl Sync for ErrorParameter
impl Unpin for ErrorParameter
impl UnwindSafe for ErrorParameter
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