pub enum BytecodeCompilationResult {
Success {
bytes: Vec<u8>,
warnings: Vec<CompileWarning>,
},
Library {
warnings: Vec<CompileWarning>,
},
Failure {
warnings: Vec<CompileWarning>,
errors: Vec<CompileError>,
},
}
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>
Failure
Auto Trait Implementations
impl RefUnwindSafe for BytecodeCompilationResult
impl Send for BytecodeCompilationResult
impl Sync for BytecodeCompilationResult
impl Unpin for BytecodeCompilationResult
impl UnwindSafe for BytecodeCompilationResult
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