pub enum EvalError {
Environment {
span: Span,
source: EnvironmentError,
},
MissingVariable {
span: Span,
var: String,
},
CallNonFunction {
span: Span,
expr: Expression,
},
MissingArgument {
span: Span,
index: usize,
},
TypeError {
span: Span,
expected: String,
got: SerdeValue,
},
IndexOutOfBounds {
container_span: Span,
index_span: Span,
index: isize,
length: usize,
},
KeyNotFound {
key_span: Span,
key: String,
object_span: Span,
object: SerdeValueObject,
},
RangeStartGreaterThanOrEqualToEnd {
span: Span,
start: usize,
end: usize,
},
UnterminatedInterpolation {
span: Span,
src: String,
},
InvalidInterpolationValue {
span: Span,
value: SerdeValue,
},
ErrorExpression {
span: Span,
},
}
Variants§
Environment
MissingVariable
CallNonFunction
MissingArgument
TypeError
IndexOutOfBounds
KeyNotFound
RangeStartGreaterThanOrEqualToEnd
UnterminatedInterpolation
InvalidInterpolationValue
ErrorExpression
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
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 From<EvalError> for ErrorReport
impl From<EvalError> for ErrorReport
impl StructuralPartialEq for EvalError
Auto Trait Implementations§
impl Freeze for EvalError
impl !RefUnwindSafe for EvalError
impl !Send for EvalError
impl !Sync for EvalError
impl Unpin for EvalError
impl !UnwindSafe for EvalError
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