Enum deno_graph::ModuleGraphError
source · pub enum ModuleGraphError {
ModuleError(ModuleError),
ResolutionError(ResolutionError),
}
Variants§
ModuleError(ModuleError)
ResolutionError(ResolutionError)
Implementations§
source§impl ModuleGraphError
impl ModuleGraphError
sourcepub fn to_string_with_range(&self) -> String
pub fn to_string_with_range(&self) -> String
Converts the error into a string along with the range related to the error.
We don’t include the range in the error messages by default because they’re not useful in cases like the LSP where the range is given by the editor itself.
pub fn maybe_range(&self) -> Option<&Range>
Trait Implementations§
source§impl Clone for ModuleGraphError
impl Clone for ModuleGraphError
source§fn clone(&self) -> ModuleGraphError
fn clone(&self) -> ModuleGraphError
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 ModuleGraphError
impl Debug for ModuleGraphError
source§impl Display for ModuleGraphError
impl Display for ModuleGraphError
source§impl Error for ModuleGraphError
impl Error for ModuleGraphError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RefUnwindSafe for ModuleGraphError
impl Send for ModuleGraphError
impl Sync for ModuleGraphError
impl Unpin for ModuleGraphError
impl UnwindSafe for ModuleGraphError
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