formualizer_parse/
types.rs1use std::fmt::{self, Display};
2
3#[cfg(feature = "serde")]
4use serde::{Deserialize, Serialize};
5
6#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
7#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
8pub enum FormulaDialect {
9 #[default]
10 Excel,
11 OpenFormula,
12}
13
14#[non_exhaustive]
15#[derive(Debug, Clone, PartialEq)]
16pub enum ParsingError {
17 InvalidReference(String),
18}
19
20impl Display for ParsingError {
21 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
22 write!(f, "{self:?}")
23 }
24}