pub struct Size {
pub width: f32,
pub height: f32,
}
Expand description
Individual size constraint for a cell.
Fields§
§width: f32
§height: f32
Implementations§
Source§impl Size
impl Size
pub fn join_max(a: &Size, b: &Size) -> Self
pub fn join_min(a: &Size, b: &Size) -> Self
Sourcepub fn spread(&self, divisions: f32) -> Self
pub fn spread(&self, divisions: f32) -> Self
Divides the width and height by a given division level. Used when a size must be spread across multiple table cells.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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