pub struct LayoutNode {
pub id: NodeId,
pub origin: Point,
pub width: Length,
pub height: Length,
pub depth: Length,
pub primary_source: Option<SourceRange>,
pub kind: LayoutNodeKind,
}Expand description
A node of the layout tree.
Fields§
§id: NodeIdId, equal to the node’s index in Fragment::nodes.
origin: PointReference point relative to the parent’s reference point, the box’s left baseline point, y down.
width: LengthHorizontal extent to the right of the reference point.
height: LengthExtent above the reference point.
depth: LengthExtent below the reference point.
primary_source: Option<SourceRange>The source span this node was typeset from.
kind: LayoutNodeKindWhat the node is.
Implementations§
Trait Implementations§
Source§impl Clone for LayoutNode
impl Clone for LayoutNode
Source§impl Debug for LayoutNode
impl Debug for LayoutNode
Source§impl PartialEq for LayoutNode
impl PartialEq for LayoutNode
impl StructuralPartialEq for LayoutNode
Auto Trait Implementations§
impl Freeze for LayoutNode
impl RefUnwindSafe for LayoutNode
impl Send for LayoutNode
impl Sync for LayoutNode
impl Unpin for LayoutNode
impl UnsafeUnpin for LayoutNode
impl UnwindSafe for LayoutNode
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