pub struct MeasureRequest {
pub known_width: Option<f32>,
pub known_height: Option<f32>,
pub available_width: AvailableSpace,
pub available_height: AvailableSpace,
}Expand description
What the layout engine asks when it measures a leaf widget.
Fields§
§known_width: Option<f32>Sizes that are already fixed; measure the other axis given these.
known_height: Option<f32>§available_width: AvailableSpace§available_height: AvailableSpaceTrait Implementations§
Source§impl Clone for MeasureRequest
impl Clone for MeasureRequest
impl Copy for MeasureRequest
Source§impl Debug for MeasureRequest
impl Debug for MeasureRequest
Source§impl PartialEq for MeasureRequest
impl PartialEq for MeasureRequest
impl StructuralPartialEq for MeasureRequest
Auto Trait Implementations§
impl Forget for MeasureRequest
impl Freeze for MeasureRequest
impl RefUnwindSafe for MeasureRequest
impl Send for MeasureRequest
impl Sync for MeasureRequest
impl Unpin for MeasureRequest
impl UnsafeUnpin for MeasureRequest
impl UnwindSafe for MeasureRequest
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