pub struct TableRow {
pub properties: Option<RawXmlNode>,
pub cells: Vec<TableCell>,
pub unknown_children: Vec<RawXmlNode>,
}Expand description
Table row (w:tr)
Fields§
§properties: Option<RawXmlNode>Row properties
cells: Vec<TableCell>Cells
unknown_children: Vec<RawXmlNode>Unknown children (preserved)
Implementations§
Source§impl TableRow
impl TableRow
Sourcepub fn from_texts<S: Into<String>>(texts: impl IntoIterator<Item = S>) -> Self
pub fn from_texts<S: Into<String>>(texts: impl IntoIterator<Item = S>) -> Self
Create a row from cell texts
Sourcepub fn from_reader<R: BufRead>(
reader: &mut Reader<R>,
_start: &BytesStart<'_>,
) -> Result<Self>
pub fn from_reader<R: BufRead>( reader: &mut Reader<R>, _start: &BytesStart<'_>, ) -> Result<Self>
Parse from reader
Sourcepub fn cell_count(&self) -> usize
pub fn cell_count(&self) -> usize
Get cell count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableRow
impl RefUnwindSafe for TableRow
impl Send for TableRow
impl Sync for TableRow
impl Unpin for TableRow
impl UnwindSafe for TableRow
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