Struct sway_core::language::parsed::declaration::TraitDeclaration
source · [−]pub struct TraitDeclaration {
pub name: Ident,
pub attributes: AttributesMap,
pub interface_surface: Vec<TraitFn>,
pub methods: Vec<FunctionDeclaration>,
pub visibility: Visibility,
pub span: Span,
/* private fields */
}
Fields
name: Ident
attributes: AttributesMap
interface_surface: Vec<TraitFn>
methods: Vec<FunctionDeclaration>
visibility: Visibility
span: Span
Trait Implementations
sourceimpl Clone for TraitDeclaration
impl Clone for TraitDeclaration
sourcefn clone(&self) -> TraitDeclaration
fn clone(&self) -> TraitDeclaration
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 TraitDeclaration
impl Send for TraitDeclaration
impl Sync for TraitDeclaration
impl Unpin for TraitDeclaration
impl UnwindSafe for TraitDeclaration
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