pub struct FlexChild<State: 'static> { /* private fields */ }Expand description
One child of a FlexView: an erased child view, its flex factor
(0 = inflexible; > 0 = takes a proportional share of the free main space),
and an optional ChildKey for keyed reconciliation.
key is None for the plain Row/Column/flexible/inflexible
sugar (positional reconciliation, unchanged) and Some only for children
built with keyed, which opts the whole list into key-matched
reconciliation so reorders/inserts preserve widget state.
Auto Trait Implementations§
impl<State> !RefUnwindSafe for FlexChild<State>
impl<State> !Send for FlexChild<State>
impl<State> !Sync for FlexChild<State>
impl<State> !UnwindSafe for FlexChild<State>
impl<State> Freeze for FlexChild<State>
impl<State> Unpin for FlexChild<State>
impl<State> UnsafeUnpin for FlexChild<State>where
AnyView<State>: UnsafeUnpin,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.