pub struct LayoutPriority(/* private fields */);Expand description
How strongly a view holds on to space when its container runs short.
A stack takes space from its lowest-priority children first, and only starts
on the next band up once every child below sits at the minimum it reports.
Ties share the shortfall. Defaults to 0, so raising one child’s priority is
enough to protect it.
Implementations§
Trait Implementations§
Source§impl Clone for LayoutPriority
impl Clone for LayoutPriority
Source§fn clone(&self) -> LayoutPriority
fn clone(&self) -> LayoutPriority
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 moreimpl Copy for LayoutPriority
Source§impl Debug for LayoutPriority
impl Debug for LayoutPriority
Source§impl Default for LayoutPriority
impl Default for LayoutPriority
Source§fn default() -> LayoutPriority
fn default() -> LayoutPriority
Returns the “default value” for a type. Read more
impl Eq for LayoutPriority
impl MetadataKey for LayoutPriority
Source§impl PartialEq for LayoutPriority
impl PartialEq for LayoutPriority
impl StructuralPartialEq for LayoutPriority
Auto Trait Implementations§
impl Freeze for LayoutPriority
impl RefUnwindSafe for LayoutPriority
impl Send for LayoutPriority
impl Sync for LayoutPriority
impl Unpin for LayoutPriority
impl UnsafeUnpin for LayoutPriority
impl UnwindSafe for LayoutPriority
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