#[non_exhaustive]pub enum LayoutNodeKind {
Box(LayoutBox),
GlyphRun(GlyphRun),
Rule,
Glue(Glue),
Kern(Kern),
}Expand description
What a layout node is.
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)
A box with positioned children.
GlyphRun(GlyphRun)
Glyphs of one font.
Rule
A filled rectangle spanning the node’s width, height and depth.
Glue(Glue)
Glue after glue setting.
Kern(Kern)
A kern.
Trait Implementations§
Source§impl Clone for LayoutNodeKind
impl Clone for LayoutNodeKind
Source§impl Debug for LayoutNodeKind
impl Debug for LayoutNodeKind
Source§impl PartialEq for LayoutNodeKind
impl PartialEq for LayoutNodeKind
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