Struct html2text::RenderTable
source · pub struct RenderTable { /* private fields */ }
Expand description
A representation of a table render tree with metadata.
Implementations§
source§impl RenderTable
impl RenderTable
sourcepub fn new(rows: Vec<RenderTableRow>) -> RenderTable
pub fn new(rows: Vec<RenderTableRow>) -> RenderTable
Create a new RenderTable with the given rows
sourcepub fn rows(&self) -> Iter<'_, RenderTableRow>
pub fn rows(&self) -> Iter<'_, RenderTableRow>
Return an iterator over the rows.
sourcepub fn rows_mut(&mut self) -> IterMut<'_, RenderTableRow>
pub fn rows_mut(&mut self) -> IterMut<'_, RenderTableRow>
Return an iterator over the rows.
sourcepub fn into_rows(self, col_sizes: Vec<usize>, vert: bool) -> Vec<RenderNode>
pub fn into_rows(self, col_sizes: Vec<usize>, vert: bool) -> Vec<RenderNode>
Consume this and return a Vec<RenderNode>
containing the children;
the children know the column sizes required.
sourcepub fn get_size_estimate(&self) -> SizeEstimate
pub fn get_size_estimate(&self) -> SizeEstimate
Calculate and store (or return stored value) of estimated size
Trait Implementations§
source§impl Clone for RenderTable
impl Clone for RenderTable
source§fn clone(&self) -> RenderTable
fn clone(&self) -> RenderTable
Returns a copy 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 moreAuto Trait Implementations§
impl !Freeze for RenderTable
impl !RefUnwindSafe for RenderTable
impl Send for RenderTable
impl !Sync for RenderTable
impl Unpin for RenderTable
impl UnwindSafe for RenderTable
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