pub struct Expr { /* private fields */ }Expand description
A tiny safe expression evaluator for fitness functions.
Grammar: numbers, x[0], x[i], + - * / ^ ( ), unary minus,
sin cos tan exp log sqrt abs, constants pi, e.
No eval, no I/O, no recursion depth risk (operand stack bounded by expression length) — safe to run on untrusted tool input.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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