pub struct AdvancedTable { /* private fields */ }Expand description
Advanced table with enhanced features
Implementations§
Source§impl AdvancedTable
impl AdvancedTable
Sourcepub fn new(columns: Vec<ColumnDefinition>) -> Self
pub fn new(columns: Vec<ColumnDefinition>) -> Self
Create a new advanced table with column definitions
Sourcepub fn with_equal_columns(num_columns: usize, total_width: f64) -> Self
pub fn with_equal_columns(num_columns: usize, total_width: f64) -> Self
Create a table with equal-width columns
Sourcepub fn set_position(&mut self, x: f64, y: f64) -> &mut Self
pub fn set_position(&mut self, x: f64, y: f64) -> &mut Self
Set table position
Sourcepub fn set_options(&mut self, options: AdvancedTableOptions) -> &mut Self
pub fn set_options(&mut self, options: AdvancedTableOptions) -> &mut Self
Set table options
Sourcepub fn add_header_row(
&mut self,
cells: Vec<AdvancedTableCell>,
) -> Result<&mut Self, PdfError>
pub fn add_header_row( &mut self, cells: Vec<AdvancedTableCell>, ) -> Result<&mut Self, PdfError>
Add a header row (will be repeated on each page)
Add a footer row (will be repeated on each page)
Sourcepub fn add_text_row(
&mut self,
texts: Vec<String>,
) -> Result<&mut Self, PdfError>
pub fn add_text_row( &mut self, texts: Vec<String>, ) -> Result<&mut Self, PdfError>
Add a simple text row
Sourcepub fn calculate_column_widths(&self, available_width: f64) -> Vec<f64>
pub fn calculate_column_widths(&self, available_width: f64) -> Vec<f64>
Calculate actual column widths based on table width and content
Trait Implementations§
Source§impl Clone for AdvancedTable
impl Clone for AdvancedTable
Source§fn clone(&self) -> AdvancedTable
fn clone(&self) -> AdvancedTable
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 moreAuto Trait Implementations§
impl Freeze for AdvancedTable
impl RefUnwindSafe for AdvancedTable
impl Send for AdvancedTable
impl Sync for AdvancedTable
impl Unpin for AdvancedTable
impl UnwindSafe for AdvancedTable
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