pub struct ModuleLoaderError {
pub error: Ptr<ModuleLoaderErrorKind>,
pub source: Option<Ptr<LoaderErrorSource>>,
}Expand description
The error type used by the ModuleLoader
Fields§
§error: Ptr<ModuleLoaderErrorKind>The error
source: Option<Ptr<LoaderErrorSource>>The source of the error
Implementations§
Source§impl ModuleLoaderError
impl ModuleLoaderError
Sourcepub fn is_indentation_error(&self) -> bool
pub fn is_indentation_error(&self) -> bool
Returns true if the error was caused by the expectation of indentation during parsing
Trait Implementations§
Source§impl Clone for ModuleLoaderError
impl Clone for ModuleLoaderError
Source§fn clone(&self) -> ModuleLoaderError
fn clone(&self) -> ModuleLoaderError
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 ModuleLoaderError
impl Debug for ModuleLoaderError
Source§impl Display for ModuleLoaderError
impl Display for ModuleLoaderError
Source§impl Error for ModuleLoaderError
impl Error for ModuleLoaderError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for ModuleLoaderError
impl !RefUnwindSafe for ModuleLoaderError
impl !Send for ModuleLoaderError
impl !Sync for ModuleLoaderError
impl Unpin for ModuleLoaderError
impl !UnwindSafe for ModuleLoaderError
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