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: Purityattributes: AttributesMapname: Identvisibility: Visibilitybody: CodeBlockparameters: Vec<FunctionParameter>span: Spanreturn_type: TypeInfotype_parameters: Vec<TypeParameter>return_type_span: SpanTrait 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