pub enum EvalParseError {
Structural(String),
UnknownVerdict {
index: usize,
token: String,
},
}Expand description
Why a YAML document is not a valid eval suite.
Variants§
Structural(String)
The document is not structurally an eval suite: a required field is missing, a value has the wrong type, an unknown key is present, or the YAML is malformed. Carries the underlying parser message, which names the offending field.
UnknownVerdict
A case’s expected value is not a known verdict token. Carries the
offending case so the author can find it.
Trait Implementations§
Source§impl Debug for EvalParseError
impl Debug for EvalParseError
Source§impl Display for EvalParseError
impl Display for EvalParseError
Source§impl Error for EvalParseError
impl Error for EvalParseError
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 EvalParseError
impl RefUnwindSafe for EvalParseError
impl Send for EvalParseError
impl Sync for EvalParseError
impl Unpin for EvalParseError
impl UnwindSafe for EvalParseError
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