Enum sway_core::SwayAsmSet
source · [−]pub enum SwayAsmSet {
ContractAbi {
data_section: DataSection,
program_section: AbstractInstructionSet,
},
ScriptMain {
data_section: DataSection,
program_section: AbstractInstructionSet,
},
PredicateMain {
data_section: DataSection,
program_section: AbstractInstructionSet,
},
Library,
}
Expand description
The SwayAsmSet contains either a contract ABI and corresponding ASM, a script’s main function’s ASM, or a predicate’s main function’s ASM. ASM is never generated for libraries, as that happens when the library itself is imported.
Variants
ContractAbi
ScriptMain
PredicateMain
Library
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SwayAsmSet
impl Send for SwayAsmSet
impl Sync for SwayAsmSet
impl Unpin for SwayAsmSet
impl UnwindSafe for SwayAsmSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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