Struct syn_solidity::TypeFunction 
source · 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: FunctionAttributesThe 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 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