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§
source§impl Clone for TyAbiDeclaration
impl Clone for TyAbiDeclaration
source§fn clone(&self) -> TyAbiDeclaration
fn clone(&self) -> TyAbiDeclaration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more