pub enum NodeDoc {
Atom(Symbol),
Frac {
num: Vec<NodeDoc>,
den: Vec<NodeDoc>,
style: FracStyle,
},
Script {
base: Vec<NodeDoc>,
sub: Option<Vec<NodeDoc>>,
sup: Option<Vec<NodeDoc>>,
},
BigOp {
op: Symbol,
lower: Vec<NodeDoc>,
upper: Vec<NodeDoc>,
},
Sqrt {
index: Vec<NodeDoc>,
radicand: Vec<NodeDoc>,
},
Delim {
open: char,
close: char,
body: Vec<NodeDoc>,
},
Accent {
mark: Mark,
base: Vec<NodeDoc>,
},
UnderOver {
base: Vec<NodeDoc>,
over: Option<Vec<NodeDoc>>,
under: Option<Vec<NodeDoc>>,
over_deco: Deco,
under_deco: Deco,
},
Styled {
variant: Variant,
content: Vec<NodeDoc>,
},
HostBox {
token: u32,
},
Matrix {
env: MatrixEnv,
rows: Vec<Vec<Vec<NodeDoc>>>,
},
}Expand description
The serialized form of one node.
Variants§
Atom(Symbol)
A single leaf token.
Frac
A fraction.
Fields
Script
Subscript and superscript on a base, at least one of the two is present.
Fields
BigOp
A big operator with limits.
Fields
Sqrt
A radical.
Fields
Delim
Stretchy delimiters around a body.
Fields
Accent
An accent over a base.
UnderOver
A base with optional labels above and below.
Fields
Styled
Content in a font variant or in text mode.
HostBox
An opaque host owned object.
Matrix
A rectangular grid of cells.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeDoc
impl<'de> Deserialize<'de> for NodeDoc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeDoc
impl StructuralPartialEq for NodeDoc
Auto Trait Implementations§
impl Freeze for NodeDoc
impl RefUnwindSafe for NodeDoc
impl Send for NodeDoc
impl Sync for NodeDoc
impl Unpin for NodeDoc
impl UnsafeUnpin for NodeDoc
impl UnwindSafe for NodeDoc
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