pub struct OofCandidate {
pub node: NodeId,
pub order: u32,
pub position: Position,
pub static_position: Point<AxisStaticPosition>,
}Expand description
A record of an out-of-flow (position: absolute or position: fixed) box which has not yet
been laid out because its containing block is an ancestor of its parent.
Candidates are produced by the layout algorithm of the box’s parent (which computes the static
position) and bubble up through LayoutOutput until they reach a node which acts as the box’s
containing block, which lays the box out.
Fields§
§node: NodeIdThe id of the out-of-flow node
order: u32The order value that the node’s layout should be assigned (its child index within its parent)
position: PositionThe position style of the node (Position::Absolute or Position::Fixed)
static_position: Point<AxisStaticPosition>The static position of the box in each axis
Trait Implementations§
Source§impl Clone for OofCandidate
impl Clone for OofCandidate
Source§fn clone(&self) -> OofCandidate
fn clone(&self) -> OofCandidate
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 moreimpl Copy for OofCandidate
Source§impl Debug for OofCandidate
impl Debug for OofCandidate
Source§impl PartialEq for OofCandidate
impl PartialEq for OofCandidate
impl StructuralPartialEq for OofCandidate
Auto Trait Implementations§
impl Freeze for OofCandidate
impl RefUnwindSafe for OofCandidate
impl Send for OofCandidate
impl Sync for OofCandidate
impl Unpin for OofCandidate
impl UnsafeUnpin for OofCandidate
impl UnwindSafe for OofCandidate
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