Struct sway_parse::FnSignature
source · [−]pub struct FnSignature {
pub visibility: Option<PubToken>,
pub impure: Option<ImpureToken>,
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>
impure: Option<ImpureToken>
fn_token: FnToken
name: Ident
generics: Option<GenericParams>
arguments: Parens<FnArgs>
return_type_opt: Option<(RightArrowToken, Ty)>
where_clause_opt: Option<WhereClause>
Implementations
sourceimpl FnSignature
impl FnSignature
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
sourceimpl Parse for FnSignature
impl Parse for FnSignature
fn parse(parser: &mut Parser<'_, '_>) -> ParseResult<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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more