pub enum Error {
CycleDetected(Vec<Cycle>),
}Variants§
Trait Implementations§
Source§impl From<Error> for CompilationError
impl From<Error> for CompilationError
Source§impl PhaseError for Error
A dependency cycle belongs to the package, not to any one module, so its message
names the modules involved rather than being prefixed with one of them, and its
labels — one per import that forms an edge — each carry their own file rather
than relying on a fallback the way a single-module phase error can
(CompilationError::DependenciesError renders this without one, see there).
impl PhaseError for Error
A dependency cycle belongs to the package, not to any one module, so its message
names the modules involved rather than being prefixed with one of them, and its
labels — one per import that forms an edge — each carry their own file rather
than relying on a fallback the way a single-module phase error can
(CompilationError::DependenciesError renders this without one, see there).
Source§fn message(&self) -> String
fn message(&self) -> String
One line naming what went wrong, in the vocabulary of the user’s source. Read more
Source§fn notes(&self) -> Vec<String>
fn notes(&self) -> Vec<String>
Supporting detail, one string per rendered note. Empty by default.
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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