pub struct Engine { /* private fields */ }Implementations§
Source§impl Engine
impl Engine
Sourcepub fn excel() -> Self
pub fn excel() -> Self
Engine targeting Excel conformance.
Excel evaluation semantics are not implemented yet (they land in a
later phase): Engine::evaluate returns
Value::Error(ErrorKind::NA) for every formula. Engine::parse
and Engine::validate work.
Sourcepub fn google_sheets() -> Self
👎Deprecated: use Engine::sheets() — engine flavor is required; see ADR 2026-04-27
pub fn google_sheets() -> Self
use Engine::sheets() — engine flavor is required; see ADR 2026-04-27
Deprecated alias for Engine::sheets.
Sourcepub fn parse(&self, formula: &str) -> Result<Expr, ParseError>
pub fn parse(&self, formula: &str) -> Result<Expr, ParseError>
Parse a formula string into an expression tree.
The formula may start with =. Returns a ParseError if the input
is not a valid formula.
Sourcepub fn validate(&self, formula: &str) -> Result<(), ParseError>
pub fn validate(&self, formula: &str) -> Result<(), ParseError>
Validate that a formula string is syntactically correct without returning the AST.
pub fn evaluate( &self, formula: &str, variables: &HashMap<String, Value>, ) -> Value
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
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