pub struct MeasureRequest {
pub index: u32,
pub known_width: Option<f32>,
pub known_height: Option<f32>,
pub available_width: AvailableSpace,
pub available_height: AvailableSpace,
}Expand description
A measured leaf’s answer for one taffy request, from the memo. width
taffy already knows wins; else the available space picks min/max content;
a definite available width clamps max-content (text wraps).
Fields§
§index: u32§known_width: Option<f32>§known_height: Option<f32>§available_width: AvailableSpace§available_height: AvailableSpaceTrait Implementations§
Source§impl Clone for MeasureRequest
impl Clone for MeasureRequest
impl Copy for MeasureRequest
Auto Trait Implementations§
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