pub enum BundleError {
Shape(String),
NotLocal(String),
Segment(String),
Twice(String),
NoEntryModule(String),
}Expand description
Why a code.Bundle is no bundle of files.
Variants§
Shape(String)
The JSON is not a code.Bundle’s form: what was wrong.
NotLocal(String)
A module is not in the local tree, which is all a bundle holds.
Segment(String)
A segment of a module path would leave its directory.
Twice(String)
Two modules of the bundle are one file.
NoEntryModule(String)
The entry’s module is not one of the bundle’s files.
Trait Implementations§
Source§impl Clone for BundleError
impl Clone for BundleError
Source§impl Debug for BundleError
impl Debug for BundleError
Source§impl Display for BundleError
impl Display for BundleError
impl Eq for BundleError
Source§impl Error for BundleError
impl Error for BundleError
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 PartialEq for BundleError
impl PartialEq for BundleError
impl StructuralPartialEq for BundleError
Auto Trait Implementations§
impl Forget for BundleError
impl Freeze for BundleError
impl Move for BundleError
impl RefUnwindSafe for BundleError
impl Send for BundleErrorwhere
RawVecInner: Send,
impl Sync for BundleErrorwhere
RawVecInner: Sync,
impl Unpin for BundleError
impl UnsafeUnpin for BundleError
impl UnwindSafe for BundleErrorwhere
RawVecInner: UnwindSafe,
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