pub enum ContextCreationError {
NotARecord {
expr: Box<RestrictedExpr>,
},
Evaluation(EvaluationError),
ExprConstruction(ExprConstructionError),
}
Expand description
Errors while trying to create a Context
Variants§
NotARecord
Fields
§
expr: Box<RestrictedExpr>
Expression which is not a record
Tried to create a Context
out of something other than a record
Evaluation(EvaluationError)
Error evaluating the expression given for the Context
ExprConstruction(ExprConstructionError)
Error constructing the expression given for the Context
.
Only returned by Context::from_pairs()
Trait Implementations§
source§impl Debug for ContextCreationError
impl Debug for ContextCreationError
source§impl Display for ContextCreationError
impl Display for ContextCreationError
source§impl Error for ContextCreationError
impl Error for ContextCreationError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ContextCreationError> for ContextJsonDeserializationError
impl From<ContextCreationError> for ContextJsonDeserializationError
source§fn from(source: ContextCreationError) -> Self
fn from(source: ContextCreationError) -> Self
Converts to this type from the input type.
source§impl From<ContextCreationError> for JsonDeserializationError
impl From<ContextCreationError> for JsonDeserializationError
source§fn from(source: ContextCreationError) -> Self
fn from(source: ContextCreationError) -> Self
Converts to this type from the input type.
source§impl From<EvaluationError> for ContextCreationError
impl From<EvaluationError> for ContextCreationError
source§fn from(source: EvaluationError) -> Self
fn from(source: EvaluationError) -> Self
Converts to this type from the input type.
source§impl From<ExprConstructionError> for ContextCreationError
impl From<ExprConstructionError> for ContextCreationError
source§fn from(source: ExprConstructionError) -> Self
fn from(source: ExprConstructionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ContextCreationError
impl Send for ContextCreationError
impl Sync for ContextCreationError
impl Unpin for ContextCreationError
impl UnwindSafe for ContextCreationError
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