Struct table_to_html::HtmlTable
source · pub struct HtmlTable { /* private fields */ }
Expand description
The structure represents an HTML <table>
.
Implementations§
source§impl HtmlTable
impl HtmlTable
sourcepub fn with_header<I, R, T>(iter: I) -> Self
pub fn with_header<I, R, T>(iter: I) -> Self
Creates a new html table from a given elements. Assuming that the first row has column names.
sourcepub fn set_padding(&mut self, target: Entity, pad: Padding)
pub fn set_padding(&mut self, target: Entity, pad: Padding)
Set a padding for a given target.
sourcepub fn set_alignment(&mut self, target: Entity, val: Alignment)
pub fn set_alignment(&mut self, target: Entity, val: Alignment)
Set a alignment for a given target.
sourcepub fn set_column_span(&mut self, pos: Position, size: usize)
pub fn set_column_span(&mut self, pos: Position, size: usize)
Set a column span for a given cell.
sourcepub fn set_row_span(&mut self, pos: Position, size: usize)
pub fn set_row_span(&mut self, pos: Position, size: usize)
Set a row span for a given cell.
sourcepub fn set_margin(&mut self, margin: Margin)
pub fn set_margin(&mut self, margin: Margin)
Set a margin for a whole table.
sourcepub fn set_border(&mut self, size: usize)
pub fn set_border(&mut self, size: usize)
Set a border for a whole table.
sourcepub fn visit<V: HtmlVisitor>(&self, visitor: V)
pub fn visit<V: HtmlVisitor>(&self, visitor: V)
Uses the visitor to traverse a table.
sourcepub fn visit_mut<V: HtmlVisitorMut>(&mut self, visitor: V)
pub fn visit_mut<V: HtmlVisitorMut>(&mut self, visitor: V)
Uses the visitor to traverse a table while mutating it.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HtmlTable
impl Send for HtmlTable
impl Sync for HtmlTable
impl Unpin for HtmlTable
impl UnwindSafe for HtmlTable
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