textlane-core 0.0.0

Textlane's core: unist, mdast, hast and nlcst trees, the file and the plugin contract its crates share
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::ArenaVec;

/// unist's `data`: whatever JSON a plugin attached to a node, kept as it is.
#[derive(Debug, PartialEq)]
pub enum Data<'a> {
    Null,
    Boolean(bool),
    Number(f64),
    String(&'a str),
    Array(ArenaVec<'a, Data<'a>>),
    Object(ArenaVec<'a, (&'a str, Data<'a>)>),
}