pub enum AvailableSpace {
Definite(f32),
MinContent,
MaxContent,
}Expand description
Available space constraint for layout.
Variants§
Definite(f32)
A definite size in pixels.
MinContent
Size determined by content (shrink-to-fit).
MaxContent
Size determined by content with no wrapping.
Implementations§
Trait Implementations§
Source§impl Clone for AvailableSpace
impl Clone for AvailableSpace
Source§fn clone(&self) -> AvailableSpace
fn clone(&self) -> AvailableSpace
Returns a duplicate of the value. Read more
1.0.0 · 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 AvailableSpace
impl Debug for AvailableSpace
Source§impl Default for AvailableSpace
impl Default for AvailableSpace
Source§impl PartialEq for AvailableSpace
impl PartialEq for AvailableSpace
impl Copy for AvailableSpace
impl StructuralPartialEq for AvailableSpace
Auto Trait Implementations§
impl Freeze for AvailableSpace
impl RefUnwindSafe for AvailableSpace
impl Send for AvailableSpace
impl Sync for AvailableSpace
impl Unpin for AvailableSpace
impl UnwindSafe for AvailableSpace
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