pub struct FlexItem { /* private fields */ }
Expand description
A single item in a Flexbox.
Implementations§
Source§impl FlexItem
impl FlexItem
Sourcepub fn with_flex_grow(view: impl IntoBoxedView, flex_grow: u8) -> Self
pub fn with_flex_grow(view: impl IntoBoxedView, flex_grow: u8) -> Self
Create a flex item with the given grow factor.
Sourcepub fn set_flex_grow(&mut self, flex_grow: u8)
pub fn set_flex_grow(&mut self, flex_grow: u8)
Set the flex-grow.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlexItem
impl !RefUnwindSafe for FlexItem
impl !Send for FlexItem
impl !Sync for FlexItem
impl Unpin 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