notedown_ast 0.12.5

notedown ast and converter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod add;
mod index;
mod mul;

use crate::{
    nodes::{Literal, Value},
    NoteError, Result,
};
use num::{BigInt, Signed, ToPrimitive};
use std::{
    collections::BTreeSet,
    ops::{Add, Div, Mul, Neg, Shr, Sub},
};

fn fail_int2dec(n: BigInt) -> Result<Value> {
    Err(NoteError::runtime_error(format!("Can not convert `Integer` {} to `Decimal`", n)))
}