pub struct Placed {
pub block: Range<usize>,
pub content: Range<usize>,
}Expand description
Where one column’s markup went, and which of it the cell wrote.
Two ranges because two different things vary, and a caller compiling this into a template needs to say which it means.
block is the whole <div>: the column emits one per column whether or not
a cell answers it, so a caller replacing a cell with a different one replaces
the block, class and all.
content is what the cell itself contributed. A cell that is absent leaves
the block standing and empty, so a caller compiling “this cell is there or
is not” must cover the content alone – covering the block would delete a
<div> the row still draws, and the row would lose a column.
Fields§
§block: Range<usize>The whole column block, opening tag to closing tag.
content: Range<usize>What the cell wrote inside it, empty range and all.
Trait Implementations§
impl Eq for Placed
impl StructuralPartialEq for Placed
Auto Trait Implementations§
impl Freeze for Placed
impl RefUnwindSafe for Placed
impl Send for Placed
impl Sync for Placed
impl Unpin for Placed
impl UnsafeUnpin for Placed
impl UnwindSafe for Placed
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