pub enum ComputeError {
UnknownVariable(String),
VariableNameTaken(String),
FunctionArgumentCount {
function_name: String,
expected_argument_count: usize,
supplied_argument_count: usize,
},
ResultTooBig(FunctionName, Vec<Literal>),
InvalidFactorialArgument(Literal),
InvalidSquareRoot(Literal),
DivisionByZero,
InvalidTruncatePrecision(Literal),
}Variants§
UnknownVariable(String)
VariableNameTaken(String)
FunctionArgumentCount
ResultTooBig(FunctionName, Vec<Literal>)
InvalidFactorialArgument(Literal)
InvalidSquareRoot(Literal)
DivisionByZero
InvalidTruncatePrecision(Literal)
Trait Implementations§
Source§impl Debug for ComputeError
impl Debug for ComputeError
Source§impl PartialEq for ComputeError
impl PartialEq for ComputeError
impl Eq for ComputeError
impl StructuralPartialEq for ComputeError
Auto Trait Implementations§
impl Freeze for ComputeError
impl RefUnwindSafe for ComputeError
impl Send for ComputeError
impl Sync for ComputeError
impl Unpin for ComputeError
impl UnwindSafe for ComputeError
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