Enum sway_core::BytecodeCompilationResult [−][src]
pub enum BytecodeCompilationResult<'sc> {
Success {
bytes: Vec<u8>,
warnings: Vec<CompileWarning<'sc>>,
},
Library {
warnings: Vec<CompileWarning<'sc>>,
},
Failure {
warnings: Vec<CompileWarning<'sc>>,
errors: Vec<CompileError<'sc>>,
},
}
Expand description
Represents the result of compiling Sway code via compile_to_bytecode
.
Contains the compiled bytecode in byte form, or, resulting errors, and any warnings generated.
Variants
Success
Library
Fields
warnings: Vec<CompileWarning<'sc>>