pub enum ComponentOptError {
WasmOpt(OptimizationError),
IO(Error),
UnknownSection {
section: String,
},
BinaryReader(BinaryReaderError),
}
Variants§
Trait Implementations§
Source§impl Debug for ComponentOptError
impl Debug for ComponentOptError
Source§impl Display for ComponentOptError
impl Display for ComponentOptError
Source§impl Error for ComponentOptError
impl Error for ComponentOptError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BinaryReaderError> for ComponentOptError
impl From<BinaryReaderError> for ComponentOptError
Source§fn from(source: BinaryReaderError) -> Self
fn from(source: BinaryReaderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ComponentOptError
impl From<Error> for ComponentOptError
Source§impl From<OptimizationError> for ComponentOptError
impl From<OptimizationError> for ComponentOptError
Source§fn from(source: OptimizationError) -> Self
fn from(source: OptimizationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComponentOptError
impl !RefUnwindSafe for ComponentOptError
impl Send for ComponentOptError
impl Sync for ComponentOptError
impl Unpin for ComponentOptError
impl !UnwindSafe for ComponentOptError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more