pub struct Grow {
pub dimension: Dimension,
pub weight: f64,
}Expand description
How a piece grows into the space its parent offers: the dimensions, and its share among
growing siblings. .grow(..) takes a bare Dimension (weight 1.0) or
Dimension::weight.
Fields§
§dimension: Dimension§weight: f64The share of spare space, relative to growing siblings; 1.0 unless set.
Trait Implementations§
impl Copy for Grow
impl StructuralPartialEq for Grow
Auto Trait Implementations§
impl Forget for Grow
impl Freeze for Grow
impl Move for Grow
impl RefUnwindSafe for Grow
impl Send for Grow
impl Sync for Grow
impl Unpin for Grow
impl UnsafeUnpin for Grow
impl UnwindSafe for Grow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more