pub struct TableBorderGrid {
pub num_rows: usize,
pub num_cols: usize,
pub horizontal_edges: Vec<Vec<CollapsedBorderEdge>>,
pub vertical_edges: Vec<Vec<CollapsedBorderEdge>>,
pub row_positions: Vec<f32>,
pub col_positions: Vec<f32>,
}Expand description
2D grid matrix storing resolved collapsed borders and boundary coordinates (CSS 2.1 §17.6.2).
Fields§
§num_rows: usize§num_cols: usize§horizontal_edges: Vec<Vec<CollapsedBorderEdge>>Horizontal boundary edges: (num_rows + 1) rows by num_cols columns.
vertical_edges: Vec<Vec<CollapsedBorderEdge>>Vertical boundary edges: num_rows rows by (num_cols + 1) columns.
row_positions: Vec<f32>Y coordinates of the num_rows + 1 horizontal grid lines.
col_positions: Vec<f32>X coordinates of the num_cols + 1 vertical grid lines.
Implementations§
Trait Implementations§
Source§impl Clone for TableBorderGrid
impl Clone for TableBorderGrid
Source§impl Debug for TableBorderGrid
impl Debug for TableBorderGrid
Source§impl PartialEq for TableBorderGrid
impl PartialEq for TableBorderGrid
impl StructuralPartialEq for TableBorderGrid
Auto Trait Implementations§
impl Forget for TableBorderGrid
impl Freeze for TableBorderGrid
impl Move for TableBorderGrid
impl RefUnwindSafe for TableBorderGrid
impl Send for TableBorderGrid
impl Sync for TableBorderGrid
impl Unpin for TableBorderGrid
impl UnsafeUnpin for TableBorderGrid
impl UnwindSafe for TableBorderGrid
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