Struct sway_core::parse_tree::declaration::TraitFn
source · [−]pub struct TraitFn {
pub name: Ident,
pub attributes: AttributesMap,
pub purity: Purity,
pub parameters: Vec<FunctionParameter>,
pub return_type: TypeInfo,
pub return_type_span: Span,
}
Fields
name: Ident
attributes: AttributesMap
purity: Purity
parameters: Vec<FunctionParameter>
return_type: TypeInfo
return_type_span: Span
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TraitFn
impl Send for TraitFn
impl Sync for TraitFn
impl Unpin for TraitFn
impl UnwindSafe for TraitFn
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