pub struct Placement {
pub node_id: NodeId,
pub x: f32,
pub y: f32,
pub z_index: i32,
}Expand description
Placement information for a measured child.
Fields§
§node_id: NodeIdThe child placed.
x: f32Its left edge in the parent, in logical pixels.
y: f32Its top edge in the parent, in logical pixels.
z_index: i32Its draw order among its siblings: higher draws on top.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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