pub enum ChildAxis {
Free,
AtMost(f32),
Exactly(f32),
}Expand description
What a child is given on one axis by a ChildLayout::layout_child call.
Variants§
Free
As big as it likes.
AtMost(f32)
At most this many pixels: a paragraph wraps there, a block smaller than it keeps its size.
Exactly(f32)
This many pixels. A child with a size of its own on this axis keeps it, as a stack’s layer does.
Trait Implementations§
impl Copy for ChildAxis
impl StructuralPartialEq for ChildAxis
Auto Trait Implementations§
impl Freeze for ChildAxis
impl RefUnwindSafe for ChildAxis
impl Send for ChildAxis
impl Sync for ChildAxis
impl Unpin for ChildAxis
impl UnsafeUnpin for ChildAxis
impl UnwindSafe for ChildAxis
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