#[non_exhaustive]pub struct LayoutTableCell {
pub blocks: Vec<DocumentLayoutBlock>,
pub row_span: i32,
pub col_span: i32,
/* private fields */
}Expand description
Represents a cell in a table row.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.blocks: Vec<DocumentLayoutBlock>A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks.
row_span: i32How many rows this cell spans.
col_span: i32How many columns this cell spans.
Implementations§
Source§impl LayoutTableCell
impl LayoutTableCell
pub fn new() -> Self
Sourcepub fn set_blocks<T, V>(self, v: T) -> Self
pub fn set_blocks<T, V>(self, v: T) -> Self
Sourcepub fn set_row_span<T: Into<i32>>(self, v: T) -> Self
pub fn set_row_span<T: Into<i32>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for LayoutTableCell
impl Clone for LayoutTableCell
Source§fn clone(&self) -> LayoutTableCell
fn clone(&self) -> LayoutTableCell
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 moreSource§impl Debug for LayoutTableCell
impl Debug for LayoutTableCell
Source§impl Default for LayoutTableCell
impl Default for LayoutTableCell
Source§fn default() -> LayoutTableCell
fn default() -> LayoutTableCell
Returns the “default value” for a type. Read more
Source§impl Message for LayoutTableCell
impl Message for LayoutTableCell
Source§impl PartialEq for LayoutTableCell
impl PartialEq for LayoutTableCell
impl StructuralPartialEq for LayoutTableCell
Auto Trait Implementations§
impl Freeze for LayoutTableCell
impl RefUnwindSafe for LayoutTableCell
impl Send for LayoutTableCell
impl Sync for LayoutTableCell
impl Unpin for LayoutTableCell
impl UnwindSafe for LayoutTableCell
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