#[non_exhaustive]pub enum LayoutNodeKind {
Box(LayoutBox),
List(LayoutList),
Group {
children: Vec<NodeId>,
},
GlyphRun(GlyphRun),
Rule(Rule),
Glue(Glue),
Kern(Kern),
Drawing(Drawing),
}Expand description
Renderer neutral node payloads.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Box(LayoutBox)
TeX style box with width, height, depth, and positioned children.
List(LayoutList)
TeX style list before or after packaging into a box.
Group
A grouping of child nodes with no layout box.
GlyphRun(GlyphRun)
A sequence of shaped glyphs from one font.
Rule(Rule)
A solid rule, such as a fraction bar.
Glue(Glue)
Flexible spacing emitted after layout resolution.
Kern(Kern)
Fixed horizontal or vertical spacing between adjacent items.
Drawing(Drawing)
Drawing commands for extensible delimiters or geometry beyond glyphs and rules.
Trait Implementations§
Source§impl Clone for LayoutNodeKind
impl Clone for LayoutNodeKind
Source§fn clone(&self) -> LayoutNodeKind
fn clone(&self) -> LayoutNodeKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutNodeKind
impl Debug for LayoutNodeKind
Source§impl PartialEq for LayoutNodeKind
impl PartialEq for LayoutNodeKind
Source§fn eq(&self, other: &LayoutNodeKind) -> bool
fn eq(&self, other: &LayoutNodeKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LayoutNodeKind
Auto Trait Implementations§
impl Freeze for LayoutNodeKind
impl RefUnwindSafe for LayoutNodeKind
impl Send for LayoutNodeKind
impl Sync for LayoutNodeKind
impl Unpin for LayoutNodeKind
impl UnsafeUnpin for LayoutNodeKind
impl UnwindSafe for LayoutNodeKind
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