pub enum LoadError {
NotFound {
spec: String,
},
Cycle {
path: Vec<ModuleName>,
},
Compile {
name: ModuleName,
error: Error,
path: Option<String>,
source: String,
},
}Expand description
Compile-time module loading errors.
Variants§
NotFound
Spec could not be resolved.
Cycle
Import cycle detected; path is the closing chain of names.
Fields
§
path: Vec<ModuleName>Compile
Module failed to compile. source is its text, and path the file it
was read from, if any: what Error::report needs to show the error
at its line.
Trait Implementations§
impl Eq for LoadError
impl StructuralPartialEq for LoadError
Auto Trait Implementations§
impl !RefUnwindSafe for LoadError
impl !Sync for LoadError
impl !UnwindSafe for LoadError
impl Freeze for LoadError
impl Send for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more