pub enum ExtensionFunctionLookupError {
FuncDoesNotExist {
name: Name,
},
HasNoType {
name: Name,
},
FuncMultiplyDefined {
name: Name,
num_defs: usize,
},
MultipleConstructorsSameSignature {
return_type: Box<SchemaType>,
arg_type: Box<SchemaType>,
},
}
Expand description
Errors thrown when looking up an extension function in Extensions
.
Variants§
FuncDoesNotExist
Tried to call a function that doesn’t exist
HasNoType
Attempted to typecheck an expression that had no type
FuncMultiplyDefined
Fields
Tried to call a function but it was defined multiple times (e.g., by multiple different extensions)
MultipleConstructorsSameSignature
Fields
§
return_type: Box<SchemaType>
return type of the shared constructor signature
§
arg_type: Box<SchemaType>
argument type of the shared constructor signature
Two extension constructors (in the same or different extensions) had exactly the same type signature. This is currently not allowed.
Trait Implementations§
source§impl Clone for ExtensionFunctionLookupError
impl Clone for ExtensionFunctionLookupError
source§fn clone(&self) -> ExtensionFunctionLookupError
fn clone(&self) -> ExtensionFunctionLookupError
Returns a copy 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 ExtensionFunctionLookupError
impl Debug for ExtensionFunctionLookupError
source§impl Error for ExtensionFunctionLookupError
impl Error for ExtensionFunctionLookupError
1.30.0 · 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<ExtensionFunctionLookupError> for EvaluationError
impl From<ExtensionFunctionLookupError> for EvaluationError
source§fn from(err: ExtensionFunctionLookupError) -> EvaluationError
fn from(err: ExtensionFunctionLookupError) -> EvaluationError
Converts to this type from the input type.
source§impl From<ExtensionFunctionLookupError> for EvaluationErrorKind
impl From<ExtensionFunctionLookupError> for EvaluationErrorKind
source§fn from(source: ExtensionFunctionLookupError) -> EvaluationErrorKind
fn from(source: ExtensionFunctionLookupError) -> EvaluationErrorKind
Converts to this type from the input type.
source§impl PartialEq for ExtensionFunctionLookupError
impl PartialEq for ExtensionFunctionLookupError
source§fn eq(&self, other: &ExtensionFunctionLookupError) -> bool
fn eq(&self, other: &ExtensionFunctionLookupError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExtensionFunctionLookupError
impl StructuralEq for ExtensionFunctionLookupError
impl StructuralPartialEq for ExtensionFunctionLookupError
Auto Trait Implementations§
impl RefUnwindSafe for ExtensionFunctionLookupError
impl Send for ExtensionFunctionLookupError
impl Sync for ExtensionFunctionLookupError
impl Unpin for ExtensionFunctionLookupError
impl UnwindSafe for ExtensionFunctionLookupError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.