Struct solang_parser::pt::FunctionDefinition
source · [−]pub struct FunctionDefinition {
pub loc: Loc,
pub ty: FunctionTy,
pub name: Option<Identifier>,
pub name_loc: Loc,
pub params: ParameterList,
pub attributes: Vec<FunctionAttribute>,
pub return_not_returns: Option<Loc>,
pub returns: ParameterList,
pub body: Option<Statement>,
}Fields
loc: Locty: FunctionTyname: Option<Identifier>name_loc: Locparams: ParameterListattributes: Vec<FunctionAttribute>return_not_returns: Option<Loc>returns: ParameterListbody: Option<Statement>Trait Implementations
sourceimpl Clone for FunctionDefinition
impl Clone for FunctionDefinition
sourcefn clone(&self) -> FunctionDefinition
fn clone(&self) -> FunctionDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FunctionDefinition
impl Debug for FunctionDefinition
sourceimpl PartialEq<FunctionDefinition> for FunctionDefinition
impl PartialEq<FunctionDefinition> for FunctionDefinition
sourcefn eq(&self, other: &FunctionDefinition) -> bool
fn eq(&self, other: &FunctionDefinition) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FunctionDefinition) -> bool
fn ne(&self, other: &FunctionDefinition) -> bool
This method tests for !=.
impl StructuralPartialEq for FunctionDefinition
Auto Trait Implementations
impl RefUnwindSafe for FunctionDefinition
impl Send for FunctionDefinition
impl Sync for FunctionDefinition
impl Unpin for FunctionDefinition
impl UnwindSafe for FunctionDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more