pub struct Item<T> {
pub width: Sizing<T>,
pub height: Sizing<T>,
pub weight: f32,
}Expand description
sizing overrides and growth weight for a flex child
exact local dimensions take precedence over item sizing weight only affects how grow children share leftover space
Fields§
§width: Sizing<T>§height: Sizing<T>§weight: f32Implementations§
Trait Implementations§
impl<T: Copy> Copy for Item<T>
impl<T: PartialEq> StructuralPartialEq for Item<T>
Auto Trait Implementations§
impl<T> Forget for Item<T>
impl<T> Freeze for Item<T>where
T: Freeze,
impl<T> Move for Item<T>
impl<T> RefUnwindSafe for Item<T>where
T: RefUnwindSafe,
impl<T> Send for Item<T>where
T: Send,
impl<T> Sync for Item<T>where
T: Sync,
impl<T> Unpin for Item<T>where
T: Unpin,
impl<T> UnsafeUnpin for Item<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Item<T>where
T: UnwindSafe,
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