Struct sway_core::language::ty::TyAbiDeclaration
source · pub struct TyAbiDeclaration {
pub name: Ident,
pub interface_surface: Vec<DeclarationId>,
pub methods: Vec<DeclarationId>,
pub span: Span,
pub attributes: AttributesMap,
}
Expand description
A TyAbiDeclaration contains the type-checked version of the parse tree’s AbiDeclaration
.
Fields
name: Ident
The name of the abi trait (also known as a “contract trait”)
interface_surface: Vec<DeclarationId>
The methods a contract is required to implement in order opt in to this interface
methods: Vec<DeclarationId>
span: Span
attributes: AttributesMap
Trait Implementations
sourceimpl Clone for TyAbiDeclaration
impl Clone for TyAbiDeclaration
sourcefn clone(&self) -> TyAbiDeclaration
fn clone(&self) -> TyAbiDeclaration
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 moresourceimpl Debug for TyAbiDeclaration
impl Debug for TyAbiDeclaration
sourceimpl PartialEq<TyAbiDeclaration> for TyAbiDeclaration
impl PartialEq<TyAbiDeclaration> for TyAbiDeclaration
impl Eq for TyAbiDeclaration
Auto Trait Implementations
impl RefUnwindSafe for TyAbiDeclaration
impl Send for TyAbiDeclaration
impl Sync for TyAbiDeclaration
impl Unpin for TyAbiDeclaration
impl UnwindSafe for TyAbiDeclaration
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.