pub struct LayoutModifierMeasureResult {
pub size: Size,
pub placement_offset_x: f32,
pub placement_offset_y: f32,
}Expand description
Result of a layout modifier measurement operation.
Unlike MeasureResult which is for MeasurePolicy (multiple children),
this type is specifically for layout modifiers which wrap a single piece
of content and need to specify where that wrapped content should be placed.
Fields§
§size: SizeThe size this modifier will occupy.
placement_offset_x: f32The offset at which to place the wrapped content relative to the top-left corner of this modifier’s bounds. For example, PaddingNode returns (padding.left, padding.top) here to offset the child by the padding amount.
placement_offset_y: f32Implementations§
Trait Implementations§
Source§impl Clone for LayoutModifierMeasureResult
impl Clone for LayoutModifierMeasureResult
Source§fn clone(&self) -> LayoutModifierMeasureResult
fn clone(&self) -> LayoutModifierMeasureResult
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 LayoutModifierMeasureResult
impl Debug for LayoutModifierMeasureResult
impl Copy for LayoutModifierMeasureResult
Auto Trait Implementations§
impl Freeze for LayoutModifierMeasureResult
impl RefUnwindSafe for LayoutModifierMeasureResult
impl Send for LayoutModifierMeasureResult
impl Sync for LayoutModifierMeasureResult
impl Unpin for LayoutModifierMeasureResult
impl UnwindSafe for LayoutModifierMeasureResult
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