pub struct TypeFunction {
pub function_token: function,
pub paren_token: Paren,
pub arguments: ParameterList,
pub attributes: FunctionAttributes,
pub returns: Option<Returns>,
}
Expand description
A function type: function() returns (string memory)
.
Solidity reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.functionTypeName
Fields§
§function_token: function
§paren_token: Paren
§arguments: ParameterList
§attributes: FunctionAttributes
The Solidity attributes of the function.
returns: Option<Returns>
The optional return types of the function.
Trait Implementations§
Source§impl Clone for TypeFunction
impl Clone for TypeFunction
Source§fn clone(&self) -> TypeFunction
fn clone(&self) -> TypeFunction
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 Debug for TypeFunction
impl Debug for TypeFunction
Source§impl Display for TypeFunction
impl Display for TypeFunction
Source§impl Hash for TypeFunction
impl Hash for TypeFunction
Source§impl Parse for TypeFunction
impl Parse for TypeFunction
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl PartialEq for TypeFunction
impl PartialEq for TypeFunction
Source§impl Spanned for TypeFunction
impl Spanned for TypeFunction
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.impl Eq for TypeFunction
Auto Trait Implementations§
impl Freeze for TypeFunction
impl RefUnwindSafe for TypeFunction
impl !Send for TypeFunction
impl !Sync for TypeFunction
impl Unpin for TypeFunction
impl UnwindSafe for TypeFunction
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