#[non_exhaustive]pub enum Overflow {
Visible,
Clip,
Scroll,
}Expand description
What happens to children that do not fit inside their parent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Visible
Children paint outside the parent’s bounds.
Clip
Children are clipped to the parent’s bounds.
Scroll
Children are clipped to the parent’s bounds, and the parent is a scroll container in layout: as a flex item its automatic minimum size is zero rather than its content’s size, so it shrinks to the space it is given and its content scrolls inside it. The scroll view and the virtual lists use this.
Implementations§
Trait Implementations§
impl Copy for Overflow
impl StructuralPartialEq for Overflow
Auto Trait Implementations§
impl Forget for Overflow
impl Freeze for Overflow
impl Move for Overflow
impl RefUnwindSafe for Overflow
impl Send for Overflow
impl Sync for Overflow
impl Unpin for Overflow
impl UnsafeUnpin for Overflow
impl UnwindSafe for Overflow
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