pub enum NodeData {
Show 27 variants
Temp,
Box(Box<BoxData>),
Rule {
width: i32,
depth: i32,
height: i32,
dir: i8,
index: i32,
left: i32,
right: i32,
},
Ins {
cost: i32,
depth: i32,
height: i32,
spec: Glue,
head: NodeRef,
},
Mark {
class: u32,
mark: TokenList,
},
Adjust {
head: NodeRef,
},
Boundary {
value: i32,
},
Disc {
pre: NodeRef,
post: NodeRef,
replace: NodeRef,
penalty: i32,
},
Whatsit(Box<Whatsit>),
LocalPar {
pen_inter: i32,
pen_broken: i32,
dir: i8,
box_left: NodeRef,
box_left_width: i32,
box_right: NodeRef,
box_right_width: i32,
},
Dir {
dir: i8,
level: i32,
},
Math {
surround: i32,
glue: Glue,
},
Glue {
spec: Glue,
leader: NodeRef,
},
Kern {
kern: i32,
expansion_factor: i32,
},
Penalty {
penalty: i32,
},
Unset {
b: Box<BoxData>,
span_count: u16,
stretch: i32,
shrink: i32,
stretch_order: u8,
shrink_order: u8,
},
Glyph(GlyphData),
MarginKern {
width: i32,
glyph: NodeRef,
},
Noad(Box<NoadData>),
Fraction(Box<FractionData>),
Fence(Box<FenceData>),
Style {
style: u8,
},
Choice(Box<[NodeRef; 4]>),
MathChar {
fam: u32,
chr: u32,
},
SubList {
head: NodeRef,
},
Delim {
small_fam: u32,
small_char: u32,
large_fam: u32,
large_char: u32,
},
Other(Vec<i64>),
}Expand description
Type-specific node data.
Variants§
Temp
A list head or other temporary node.
Box(Box<BoxData>)
An hlist or vlist (id tells which).
Rule
A rule.
Fields
Ins
An insertion.
Fields
Mark
A mark.
Adjust
A \vadjust.
Boundary
A boundary.
Disc
A discretionary.
Fields
Whatsit(Box<Whatsit>)
A whatsit.
LocalPar
A local paragraph node.
Fields
Dir
A direction change.
Math
Math on/off.
Glue
Glue.
Kern
A kern.
Penalty
A penalty.
Unset
An unset box in an alignment.
Fields
Glyph(GlyphData)
A glyph (stored inline: glyphs are the most frequent nodes).
MarginKern
A margin kern.
Noad(Box<NoadData>)
A noad (noad, radical and accent ids).
Fraction(Box<FractionData>)
A generalized fraction noad.
Fence(Box<FenceData>)
A \left, \middle or \right noad.
Style
A style node (\displaystyle …); the style is 0–7 as in TeX.
Choice(Box<[NodeRef; 4]>)
A \mathchoice node: display, text, script and scriptscript lists.
MathChar
A math_char or math_text_char kernel.
SubList
A sub_box or sub_mlist kernel.
Delim
A delimiter specification (delim node).
Fields
Other(Vec<i64>)
Nodes not modelled in detail.
Trait Implementations§
impl StructuralPartialEq for NodeData
Auto Trait Implementations§
impl !Send for NodeData
impl !Sync for NodeData
impl Freeze for NodeData
impl RefUnwindSafe for NodeData
impl Unpin for NodeData
impl UnsafeUnpin for NodeData
impl UnwindSafe for NodeData
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