Struct sway_core::language::parsed::declaration::function::FunctionDeclaration
source · pub struct FunctionDeclaration {
pub purity: Purity,
pub attributes: AttributesMap,
pub name: Ident,
pub visibility: Visibility,
pub body: CodeBlock,
pub parameters: Vec<FunctionParameter>,
pub span: Span,
pub return_type: TypeInfo,
pub type_parameters: Vec<TypeParameter>,
pub return_type_span: Span,
}
Fields§
§purity: Purity
§attributes: AttributesMap
§name: Ident
§visibility: Visibility
§body: CodeBlock
§parameters: Vec<FunctionParameter>
§span: Span
§return_type: TypeInfo
§type_parameters: Vec<TypeParameter>
§return_type_span: Span
Trait Implementations§
source§impl Clone for FunctionDeclaration
impl Clone for FunctionDeclaration
source§fn clone(&self) -> FunctionDeclaration
fn clone(&self) -> FunctionDeclaration
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 more