pub enum CompilationUnitError {
FunctionConflict {
existing: UnitFnSignature,
},
ImportConflict {
existing: Item,
},
StaticStringMissing {
hash: Hash,
slot: usize,
},
StaticStringHashConflict {
hash: Hash,
current: String,
existing: String,
},
StaticObjectKeysMissing {
hash: Hash,
slot: usize,
},
StaticObjectKeysHashConflict {
hash: Hash,
current: Box<[String]>,
existing: Box<[String]>,
},
DuplicateLabel {
label: Label,
},
MissingLabel {
label: Label,
},
}
Expand description
Errors raised when building a new unit.
Variants§
FunctionConflict
Trying to register a conflicting function.
Fields
§
existing: UnitFnSignature
The signature of an already existing function.
ImportConflict
Tried to add an use that conflicts with an existing one.
StaticStringMissing
A static string was missing for the given hash and slot.
StaticStringHashConflict
A static string was missing for the given hash and slot.
Fields
StaticObjectKeysMissing
A static object keys was missing for the given hash and slot.
StaticObjectKeysHashConflict
A static object keys was missing for the given hash and slot.
Fields
DuplicateLabel
Tried to add a duplicate label.
MissingLabel
The specified label is missing.
Trait Implementations§
Source§impl Debug for CompilationUnitError
impl Debug for CompilationUnitError
Source§impl Display for CompilationUnitError
impl Display for CompilationUnitError
Source§impl Error for CompilationUnitError
impl Error for CompilationUnitError
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()
Auto Trait Implementations§
impl Freeze for CompilationUnitError
impl RefUnwindSafe for CompilationUnitError
impl Send for CompilationUnitError
impl Sync for CompilationUnitError
impl Unpin for CompilationUnitError
impl UnwindSafe for CompilationUnitError
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