pub struct MeasureInput {
pub known_width: Option<f32>,
pub known_height: Option<f32>,
pub available_width: Available,
pub available_height: Available,
}Expand description
What a measured leaf is asked.
Fields§
§known_width: Option<f32>Dimensions already fixed by the parent.
known_height: Option<f32>Height already fixed by the parent, if any.
available_width: AvailableHorizontal space offered by the parent.
available_height: AvailableVertical space offered by the parent.
Trait Implementations§
Source§impl Clone for MeasureInput
impl Clone for MeasureInput
Source§fn clone(&self) -> MeasureInput
fn clone(&self) -> MeasureInput
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 MeasureInput
Source§impl Debug for MeasureInput
impl Debug for MeasureInput
Source§impl PartialEq for MeasureInput
impl PartialEq for MeasureInput
impl StructuralPartialEq for MeasureInput
Auto Trait Implementations§
impl Freeze for MeasureInput
impl RefUnwindSafe for MeasureInput
impl Send for MeasureInput
impl Sync for MeasureInput
impl Unpin for MeasureInput
impl UnsafeUnpin for MeasureInput
impl UnwindSafe for MeasureInput
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