pub enum NodeContent {
Empty,
Children(Vec<EvaluatedNode>),
Text(Box<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(Box<EvaluatedText>)
One paragraph of text.
Shape(Arc<ShapesPlan>)
Shapes, evaluated at draw time because spatial curves need the post-layout aspect.
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 Forget for NodeContent
impl Freeze for NodeContentwhere
*const u8 is !null: Freeze,
PhantomData<EvaluatedNode>: Freeze,
*const EvaluatedText is !null: Freeze,
PhantomData<EvaluatedText>: Freeze,
*const ArcInner<ShapesPlan> is !null: Freeze,
PhantomData<ArcInner<ShapesPlan>>: Freeze,
impl Move for NodeContent
impl RefUnwindSafe for NodeContent
impl Send for NodeContent
impl Sync for NodeContent
impl Unpin for NodeContent
impl UnsafeUnpin for NodeContentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<EvaluatedNode>: UnsafeUnpin,
*const EvaluatedText is !null: UnsafeUnpin,
PhantomData<EvaluatedText>: UnsafeUnpin,
*const ArcInner<ShapesPlan> is !null: UnsafeUnpin,
PhantomData<ArcInner<ShapesPlan>>: UnsafeUnpin,
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