pub struct FlexItem {
pub grow: f32,
pub shrink: f32,
pub basis: FlexBasis,
pub min_size: Size,
pub max_size: Size,
pub align_self: Option<Alignment>,
}Fields§
§grow: f32§shrink: f32§basis: FlexBasis§min_size: Size§max_size: Size§align_self: Option<Alignment>Implementations§
Source§impl FlexItem
impl FlexItem
pub const fn new() -> Self
pub const fn fill() -> Self
pub fn flex(grow: f32) -> Self
pub fn fixed(basis: f32) -> Self
pub fn grow(self, grow: f32) -> Self
pub fn shrink(self, shrink: f32) -> Self
pub fn no_shrink(self) -> Self
pub fn basis(self, basis: f32) -> Self
pub fn basis_fraction(self, fraction: f32) -> Self
pub fn basis_gap_aware_fraction(self, fraction: f32) -> Self
pub fn auto_basis(self) -> Self
pub fn min_size(self, min_size: Size) -> Self
pub fn min_width(self, min_width: f32) -> Self
pub fn min_height(self, min_height: f32) -> Self
pub fn max_size(self, max_size: Size) -> Self
pub fn max_width(self, max_width: f32) -> Self
pub fn max_height(self, max_height: f32) -> Self
pub fn align_self(self, alignment: Alignment) -> Self
pub fn inherit_alignment(self) -> Self
Trait Implementations§
impl Copy for FlexItem
impl StructuralPartialEq for FlexItem
Auto Trait Implementations§
impl Forget for FlexItem
impl Freeze for FlexItem
impl Move for FlexItem
impl RefUnwindSafe for FlexItem
impl Send for FlexItem
impl Sync for FlexItem
impl Unpin for FlexItem
impl UnsafeUnpin for FlexItem
impl UnwindSafe for FlexItem
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