Struct sway_core::error::CompileResult
source · [−]pub struct CompileResult<T> {
pub value: Option<T>,
pub warnings: Vec<CompileWarning>,
pub errors: Vec<CompileError>,
}
Fields
value: Option<T>
warnings: Vec<CompileWarning>
errors: Vec<CompileError>
Implementations
pub fn ok(
self,
warnings: &mut Vec<CompileWarning>,
errors: &mut Vec<CompileError>
) -> Option<T>
pub fn unwrap_or_else<F: FnOnce() -> T>(
self,
warnings: &mut Vec<CompileWarning>,
errors: &mut Vec<CompileError>,
or_else: F
) -> T
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for CompileResult<T> where
T: RefUnwindSafe,
impl<T> Send for CompileResult<T> where
T: Send,
impl<T> Sync for CompileResult<T> where
T: Sync,
impl<T> Unpin for CompileResult<T> where
T: Unpin,
impl<T> UnwindSafe for CompileResult<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more