pub enum Kind {
Atom(Symbol),
Frac {
num: SeqId,
den: SeqId,
style: FracStyle,
},
Script {
base: SeqId,
sub: Option<SeqId>,
sup: Option<SeqId>,
},
BigOp {
op: Symbol,
lower: SeqId,
upper: SeqId,
},
Sqrt {
index: SeqId,
radicand: SeqId,
},
Delim {
open: char,
close: char,
body: SeqId,
},
Accent {
mark: Mark,
base: SeqId,
},
UnderOver {
base: SeqId,
over: Option<SeqId>,
under: Option<SeqId>,
over_deco: Deco,
under_deco: Deco,
},
Styled {
variant: Variant,
content: SeqId,
},
Matrix {
env: MatrixEnv,
rows: Vec<Vec<SeqId>>,
},
}Expand description
Node payloads. Every editable slot is a SeqId.
Variants§
Atom(Symbol)
A single leaf token.
Frac
A fraction with numerator and denominator slots.
Fields
Script
Subscripts and superscripts on an editable base.
Fields
BigOp
A fixed big operator with editable lower and upper limit slots.
Fields
Sqrt
A radical with degree and radicand slots.
Delim
A delimited expression.
Fields
Accent
A fixed accent mark attached to an editable base.
UnderOver
An editable base with optional over and under labels.
Fields
Styled
A styled content slot.
Matrix
A rectangular grid of editable cell slots.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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