pub struct LayoutResult {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
Computed layout result for a node.
Fields§
§x: f32X position relative to parent
y: f32Y position relative to parent
width: f32Computed width
height: f32Computed height
Trait Implementations§
Source§impl Clone for LayoutResult
impl Clone for LayoutResult
Source§fn clone(&self) -> LayoutResult
fn clone(&self) -> LayoutResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutResult
impl Debug for LayoutResult
Source§impl Default for LayoutResult
impl Default for LayoutResult
Source§fn default() -> LayoutResult
fn default() -> LayoutResult
Returns the “default value” for a type. Read more
impl Copy for LayoutResult
Auto Trait Implementations§
impl Freeze for LayoutResult
impl RefUnwindSafe for LayoutResult
impl Send for LayoutResult
impl Sync for LayoutResult
impl Unpin for LayoutResult
impl UnwindSafe for LayoutResult
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