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
sourceimpl Clone for FunctionDeclaration
impl Clone for FunctionDeclaration
sourcefn clone(&self) -> FunctionDeclaration
fn clone(&self) -> FunctionDeclaration
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for FunctionDeclaration
impl Send for FunctionDeclaration
impl Sync for FunctionDeclaration
impl Unpin for FunctionDeclaration
impl UnwindSafe for FunctionDeclaration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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