pub enum FunctionCallError {
FunctionNotFound,
IncorrectArgumentCount {
expected: usize,
},
IncorrectArgumentType {
idx: usize,
expected: &'static str,
},
Other(Box<str>),
}Expand description
An error that occurs when calling a function.
Variants§
FunctionNotFound
The function was not found in the context.
IncorrectArgumentCount
The number of arguments passed to the function does not match the expected count.
IncorrectArgumentType
The type of an argument does not match the expected type.
Fields
Other(Box<str>)
An error occurred while calling the function.
Auto Trait Implementations§
impl Freeze for FunctionCallError
impl RefUnwindSafe for FunctionCallError
impl Send for FunctionCallError
impl Sync for FunctionCallError
impl Unpin for FunctionCallError
impl UnwindSafe for FunctionCallError
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