pub enum CheckErrorKind {
UndeclaredReference {
container: String,
name: String,
},
NoMatchingOverload {
function: String,
arg_types: Vec<CelType>,
},
TypeMismatch {
expected: CelType,
actual: CelType,
},
UndefinedField {
type_name: String,
field: String,
},
NotAssignable {
from: CelType,
to: CelType,
},
HeterogeneousAggregate {
types: Vec<CelType>,
},
NotAType {
expr: String,
},
Other(String),
}Expand description
The kind of type checking error.
Variants§
UndeclaredReference
Reference to an undeclared variable or function.
Fields
NoMatchingOverload
No function overload matches the provided arguments.
TypeMismatch
Type mismatch between expected and actual types.
UndefinedField
Field not found on a type.
NotAssignable
Type is not assignable to another type.
HeterogeneousAggregate
Aggregate literal contains heterogeneous types.
NotAType
Expression cannot be used as a type.
Other(String)
General type error with custom message.
Trait Implementations§
Source§impl Clone for CheckErrorKind
impl Clone for CheckErrorKind
Source§fn clone(&self) -> CheckErrorKind
fn clone(&self) -> CheckErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckErrorKind
impl Debug for CheckErrorKind
Auto Trait Implementations§
impl Freeze for CheckErrorKind
impl RefUnwindSafe for CheckErrorKind
impl Send for CheckErrorKind
impl Sync for CheckErrorKind
impl Unpin for CheckErrorKind
impl UnwindSafe for CheckErrorKind
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