pub struct SourceFileError { /* private fields */ }Trait Implementations§
Source§impl Debug for SourceFileError
impl Debug for SourceFileError
Source§impl PhaseError for SourceFileError
Loading is the one phase that has no module and no source text to point into —
it failed before either existed — so its errors name the path instead. It goes
through PhaseError anyway, so that as_diagnostic has exactly one way to
turn a phase error into text.
impl PhaseError for SourceFileError
Loading is the one phase that has no module and no source text to point into —
it failed before either existed — so its errors name the path instead. It goes
through PhaseError anyway, so that as_diagnostic has exactly one way to
turn a phase error into text.
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.
Auto Trait Implementations§
impl !RefUnwindSafe for SourceFileError
impl !UnwindSafe for SourceFileError
impl Freeze for SourceFileError
impl Send for SourceFileError
impl Sync for SourceFileError
impl Unpin for SourceFileError
impl UnsafeUnpin for SourceFileError
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