pub enum NodeContent {
Empty,
Children(Vec<EvaluatedNode>),
Text(EvaluatedText),
Shape(Arc<ShapesPlan>),
}Expand description
A box’s content.
Variants§
Empty
Nothing: a spacer or a decoration.
Children(Vec<EvaluatedNode>)
Boxes laid out in this one, in document order.
Text(EvaluatedText)
One paragraph of text.
Shape(Arc<ShapesPlan>)
Shapes, evaluated at draw time: spatial curves need the node’s aspect, known after layout.
Trait Implementations§
Source§impl Clone for NodeContent
impl Clone for NodeContent
Source§impl Debug for NodeContent
impl Debug for NodeContent
Source§impl PartialEq for NodeContent
impl PartialEq for NodeContent
impl StructuralPartialEq for NodeContent
Auto Trait Implementations§
impl Freeze for NodeContent
impl RefUnwindSafe for NodeContent
impl Send for NodeContent
impl Sync for NodeContent
impl Unpin for NodeContent
impl UnsafeUnpin for NodeContent
impl UnwindSafe for NodeContent
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