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