pub struct SizeGrouping {
pub minimum: Size,
pub maximum: Size,
pub preferred: Size,
}
Expand description
Combines the maximum, minimum and preferred sizes for a cell.
Fields§
§minimum: Size
§maximum: Size
§preferred: Size
Implementations§
Source§impl SizeGrouping
impl SizeGrouping
pub fn join(a: &SizeGrouping, b: &SizeGrouping) -> SizeGrouping
pub fn spread(&self, divisions: f32) -> SizeGrouping
pub fn padded(&self, padding: Rectangle) -> SizeGrouping
Trait Implementations§
Source§impl Clone for SizeGrouping
impl Clone for SizeGrouping
Source§fn clone(&self) -> SizeGrouping
fn clone(&self) -> SizeGrouping
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for SizeGrouping
impl RefUnwindSafe for SizeGrouping
impl Send for SizeGrouping
impl Sync for SizeGrouping
impl Unpin for SizeGrouping
impl UnwindSafe for SizeGrouping
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