pub struct LoadError {
pub message: String,
pub line: Option<u32>,
pub col: Option<u32>,
/* private fields */
}Expand description
Failure raised while parsing or validating a bootroom.toml.
line and col are 1-based; both are None for errors that don’t
originate at a specific TOML span (cross-validation errors, CLI
override duplicates, etc.).
Fields§
§message: String§line: Option<u32>§col: Option<u32>Implementations§
Source§impl LoadError
impl LoadError
Sourcepub fn is_schema_version_mismatch(&self) -> bool
pub fn is_schema_version_mismatch(&self) -> bool
True when the failure was a schema_version mismatch.
Sourcepub fn actual_version(&self) -> Option<u32>
pub fn actual_version(&self) -> Option<u32>
The actual schema_version value encountered, when this error is
a schema mismatch. None for all other variants.
Sourcepub fn is_invalid_regex(&self) -> bool
pub fn is_invalid_regex(&self) -> bool
True when the failure was a regex compile failure on a
kind = "regex" assertion pattern.
Sourcepub fn is_unresolvable_after(&self) -> bool
pub fn is_unresolvable_after(&self) -> bool
True when the failure was an Assertion.after that did not
resolve to either "any" or a label in the containing
Scenario.actions Vec.
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
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()
impl Eq for LoadError
impl StructuralPartialEq for LoadError
Auto Trait Implementations§
impl Freeze for LoadError
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
impl UnwindSafe for LoadError
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