pub enum LayoutOverflow {
Auto,
Scroll,
Expand,
Squash,
Wrap {
grid: bool,
},
Hidden,
}Expand description
Overflow behavior for layouts when content exceeds available space.
Controls how a layout container handles child elements that don’t fit.
Variants§
Auto
Automatically determine overflow behavior.
Scroll
Enable scrolling for overflow content.
Expand
Expand the container to fit all content. This is the default.
Squash
Compress content to fit within the container.
Wrap
Wrap content to the next line or column.
Hidden
Hide content that overflows the container.
Trait Implementations§
Source§impl Arbitrary for LayoutOverflow
impl Arbitrary for LayoutOverflow
Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = BoxedStrategy<LayoutOverflow>
type Strategy = BoxedStrategy<LayoutOverflow>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(
args_shared: <Self as Arbitrary>::Parameters,
) -> Self::Strategy
fn arbitrary_with( args_shared: <Self as Arbitrary>::Parameters, ) -> Self::Strategy
Source§impl Clone for LayoutOverflow
impl Clone for LayoutOverflow
Source§fn clone(&self) -> LayoutOverflow
fn clone(&self) -> LayoutOverflow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutOverflow
impl Debug for LayoutOverflow
Source§impl Default for LayoutOverflow
impl Default for LayoutOverflow
Source§fn default() -> LayoutOverflow
fn default() -> LayoutOverflow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayoutOverflow
impl<'de> Deserialize<'de> for LayoutOverflow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LayoutOverflow
impl Display for LayoutOverflow
Source§impl PartialEq for LayoutOverflow
impl PartialEq for LayoutOverflow
Source§fn eq(&self, other: &LayoutOverflow) -> bool
fn eq(&self, other: &LayoutOverflow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LayoutOverflow
impl Serialize for LayoutOverflow
impl Copy for LayoutOverflow
impl Eq for LayoutOverflow
impl StructuralPartialEq for LayoutOverflow
Auto Trait Implementations§
impl Freeze for LayoutOverflow
impl RefUnwindSafe for LayoutOverflow
impl Send for LayoutOverflow
impl Sync for LayoutOverflow
impl Unpin for LayoutOverflow
impl UnsafeUnpin for LayoutOverflow
impl UnwindSafe for LayoutOverflow
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