pub enum Error {
Show 13 variants
Parse(String),
Conservation {
pass: String,
measure: Measure,
dropped: u64,
declared: u64,
},
UnknownPass(String),
Options {
pass: String,
message: String,
},
Stated {
name: &'static str,
message: String,
},
Missing {
pass: String,
name: String,
},
SettingDisagrees {
name: &'static str,
world: String,
program: String,
},
Pass {
pass: String,
message: String,
},
Undeclared {
pass: String,
what: &'static str,
names: Vec<String>,
},
Verify {
after: String,
failures: Vec<VerifyFailure>,
},
Instrument {
step: String,
message: String,
},
Illegal {
target: String,
name: String,
entities: Vec<Entity>,
rule: String,
lowered_by: Vec<String>,
},
SettledThenChanged {
settled_by: String,
changed_by: String,
name: String,
},
}Variants§
Parse(String)
Conservation
UnknownPass(String)
Options
Stated
A TextForm’s options refused by its declaration or by it.
Missing
SettingDisagrees
A world that already states a run setting otherwise than the program does on its manager.
Pass
Undeclared
Verify
Instrument
Illegal
Fields
SettledThenChanged
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Forget for Error
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