pub enum SourcePathError {
Io(Error),
MissingExtension,
UnsupportedExtension(String),
MissingFrontendPlugin(SourceFlavor),
ImportCycle(PathBuf),
NonRustScriptModule(PathBuf),
ImportWithoutParent(PathBuf),
InvalidImportSyntax {
path: PathBuf,
line: usize,
message: String,
},
Source(SourceError),
}Variants§
Io(Error)
MissingExtension
UnsupportedExtension(String)
MissingFrontendPlugin(SourceFlavor)
ImportCycle(PathBuf)
NonRustScriptModule(PathBuf)
ImportWithoutParent(PathBuf)
InvalidImportSyntax
Source(SourceError)
Trait Implementations§
Source§impl Debug for SourcePathError
impl Debug for SourcePathError
Source§impl Display for SourcePathError
impl Display for SourcePathError
Source§impl Error for SourcePathError
impl Error for SourcePathError
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()
Source§impl From<Error> for SourcePathError
impl From<Error> for SourcePathError
Source§impl From<SourceError> for SourcePathError
impl From<SourceError> for SourcePathError
Source§fn from(value: SourceError) -> Self
fn from(value: SourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SourcePathError
impl !UnwindSafe for SourcePathError
impl Freeze for SourcePathError
impl Send for SourcePathError
impl Sync for SourcePathError
impl Unpin for SourcePathError
impl UnsafeUnpin for SourcePathError
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