Struct sway_ast::FnSignature
source · [−]pub struct FnSignature {
pub visibility: Option<PubToken>,
pub fn_token: FnToken,
pub name: Ident,
pub generics: Option<GenericParams>,
pub arguments: Parens<FnArgs>,
pub return_type_opt: Option<(RightArrowToken, Ty)>,
pub where_clause_opt: Option<WhereClause>,
}
Fields
visibility: Option<PubToken>
fn_token: FnToken
name: Ident
generics: Option<GenericParams>
arguments: Parens<FnArgs>
return_type_opt: Option<(RightArrowToken, Ty)>
where_clause_opt: Option<WhereClause>
Trait Implementations
sourceimpl Clone for FnSignature
impl Clone for FnSignature
sourcefn clone(&self) -> FnSignature
fn clone(&self) -> FnSignature
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 FnSignature
impl Debug for FnSignature
Auto Trait Implementations
impl RefUnwindSafe for FnSignature
impl Send for FnSignature
impl Sync for FnSignature
impl Unpin for FnSignature
impl UnwindSafe for FnSignature
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