pub enum ModuleHeaderError {
BadImportForm,
BadModuleForm,
NoModuleForm,
}
Expand description
An error occurring from a call to
parse_module_header
.
Variants§
BadImportForm
An import
form was invalid.
BadModuleForm
The module
form was invalid.
NoModuleForm
No module
form was present.
Trait Implementations§
Source§impl Clone for ModuleHeaderError
impl Clone for ModuleHeaderError
Source§fn clone(&self) -> ModuleHeaderError
fn clone(&self) -> ModuleHeaderError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModuleHeaderError
impl Debug for ModuleHeaderError
Source§impl Drop for ModuleHeaderError
impl Drop for ModuleHeaderError
Source§impl<C: 'static + Context, IC: 'static + InterpreterContext> From<ModuleHeaderError> for LoadModuleError<C, IC>
impl<C: 'static + Context, IC: 'static + InterpreterContext> From<ModuleHeaderError> for LoadModuleError<C, IC>
Source§fn from(err: ModuleHeaderError) -> LoadModuleError<C, IC>
fn from(err: ModuleHeaderError) -> LoadModuleError<C, IC>
Converts to this type from the input type.
Source§impl Hash for ModuleHeaderError
impl Hash for ModuleHeaderError
Source§impl PartialEq for ModuleHeaderError
impl PartialEq for ModuleHeaderError
Source§impl Trace for ModuleHeaderError
impl Trace for ModuleHeaderError
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
impl Eq for ModuleHeaderError
impl StructuralPartialEq for ModuleHeaderError
Auto Trait Implementations§
impl Freeze for ModuleHeaderError
impl RefUnwindSafe for ModuleHeaderError
impl Send for ModuleHeaderError
impl Sync for ModuleHeaderError
impl Unpin for ModuleHeaderError
impl UnwindSafe for ModuleHeaderError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more