Struct sway_core::parse_tree::declaration::TraitFn
source · [−]pub struct TraitFn {
pub name: Ident,
pub purity: Purity,
pub parameters: Vec<FunctionParameter>,
pub return_type: TypeInfo,
pub return_type_span: Span,
}
Fields
name: Ident
purity: Purity
parameters: Vec<FunctionParameter>
return_type: TypeInfo
return_type_span: Span
Trait Implementations
impl Eq for TraitFn
impl StructuralEq for TraitFn
impl StructuralPartialEq for TraitFn
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.