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