pub struct GridLayoutRecord {
pub name: String,
pub row_constraints: Vec<Constraint>,
pub col_constraints: Vec<Constraint>,
pub available_width: u16,
pub available_height: u16,
pub row_heights: Vec<u16>,
pub col_widths: Vec<u16>,
pub input_area: Rect,
pub solve_time: Option<Duration>,
}Expand description
A record of a grid layout solve operation.
Fields§
§name: StringUser-provided name for identification.
row_constraints: Vec<Constraint>Row constraints.
col_constraints: Vec<Constraint>Column constraints.
available_width: u16Available width.
available_height: u16Available height.
row_heights: Vec<u16>Computed row heights.
col_widths: Vec<u16>Computed column widths.
input_area: RectThe input area.
solve_time: Option<Duration>Time taken to solve.
Implementations§
Source§impl GridLayoutRecord
impl GridLayoutRecord
Sourcepub fn has_row_overflow(&self) -> bool
pub fn has_row_overflow(&self) -> bool
Check for row overflow.
Sourcepub fn has_col_overflow(&self) -> bool
pub fn has_col_overflow(&self) -> bool
Check for column overflow.
Trait Implementations§
Source§impl Clone for GridLayoutRecord
impl Clone for GridLayoutRecord
Source§fn clone(&self) -> GridLayoutRecord
fn clone(&self) -> GridLayoutRecord
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 moreAuto Trait Implementations§
impl Freeze for GridLayoutRecord
impl RefUnwindSafe for GridLayoutRecord
impl Send for GridLayoutRecord
impl Sync for GridLayoutRecord
impl Unpin for GridLayoutRecord
impl UnwindSafe for GridLayoutRecord
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