use typst::foundations::{Decimal, Value};
use crate::ToValue;
impl ToValue for rust_decimal::Decimal {
fn into_value(self) -> Value {
let decimal: Decimal = self
.to_string()
.parse()
.expect("decimal string is well-formed");
Value::Decimal(decimal)
}
}