pub struct MeasureInput {
pub known_width: Option<f32>,
pub known_height: Option<f32>,
pub available_width: AvailableSpace,
pub available_height: AvailableSpace,
}Expand description
Inputs passed to leaf measure functions (e.g. text).
Fields§
§known_width: Option<f32>Sizes already fixed by the parent/style, if any.
known_height: Option<f32>§available_width: AvailableSpace§available_height: AvailableSpaceTrait Implementations§
Source§impl Clone for MeasureInput
impl Clone for MeasureInput
impl 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