pub struct DocumentTableCell {
pub blocks: Vec<DocumentBlock>,
pub column_span: u32,
pub row_span: u32,
}Expand description
支持嵌套块和跨行跨列的表格单元格。
对应 OOXML <w:tc> 元素,包含 <w:tcPr> 属性(gridSpan / vMerge)。
无直接 Java 对应,是 easydoc-rust 自创的语义模型。
Fields§
§blocks: Vec<DocumentBlock>单元格中的块级内容。
column_span: u32跨列数,最小为一。
row_span: u32跨行数,最小为一。
Trait Implementations§
Source§impl Clone for DocumentTableCell
impl Clone for DocumentTableCell
Source§fn clone(&self) -> DocumentTableCell
fn clone(&self) -> DocumentTableCell
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentTableCell
impl Debug for DocumentTableCell
Source§impl Default for DocumentTableCell
impl Default for DocumentTableCell
Source§fn default() -> DocumentTableCell
fn default() -> DocumentTableCell
Returns the “default value” for a type. Read more
Source§impl PartialEq for DocumentTableCell
impl PartialEq for DocumentTableCell
impl StructuralPartialEq for DocumentTableCell
Auto Trait Implementations§
impl Freeze for DocumentTableCell
impl RefUnwindSafe for DocumentTableCell
impl Send for DocumentTableCell
impl Sync for DocumentTableCell
impl Unpin for DocumentTableCell
impl UnsafeUnpin for DocumentTableCell
impl UnwindSafe for DocumentTableCell
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