pub struct StreamWriter<'a> { /* private fields */ }Expand description
Streaming writer for worksheets with large amounts of data.
Implementations§
Source§impl<'a> StreamWriter<'a>
impl<'a> StreamWriter<'a>
Sourcepub fn new(file: &'a File, sheet: &str) -> Result<Self>
pub fn new(file: &'a File, sheet: &str) -> Result<Self>
Create a new stream writer for the given worksheet.
Sourcepub fn add_table(&mut self, table: &TableOptions) -> Result<()>
pub fn add_table(&mut self, table: &TableOptions) -> Result<()>
Add a table within the streamed sheet.
Sourcepub fn set_row(
&mut self,
cell: &str,
values: &[&dyn StreamCellValue],
opts: Option<RowOpts>,
) -> Result<()>
pub fn set_row( &mut self, cell: &str, values: &[&dyn StreamCellValue], opts: Option<RowOpts>, ) -> Result<()>
Write a row of values starting at cell.
Values may be any type implementing StreamCellValue. Mixed types can
be passed as &[&dyn StreamCellValue] to match Go’s []interface{}.
Row options are optional and default to RowOpts::default when None.
Sourcepub fn set_col_visible(
&mut self,
min_val: i32,
max_val: i32,
visible: bool,
) -> Result<()>
pub fn set_col_visible( &mut self, min_val: i32, max_val: i32, visible: bool, ) -> Result<()>
Set column visibility for a range of columns.
Sourcepub fn set_col_outline_level(&mut self, col: i32, level: u8) -> Result<()>
pub fn set_col_outline_level(&mut self, col: i32, level: u8) -> Result<()>
Set the outline level for a column.
Sourcepub fn set_col_style(
&mut self,
min_val: i32,
max_val: i32,
style_id: i32,
) -> Result<()>
pub fn set_col_style( &mut self, min_val: i32, max_val: i32, style_id: i32, ) -> Result<()>
Set the style for a range of columns.
Sourcepub fn set_col_width(
&mut self,
min_val: i32,
max_val: i32,
width: f64,
) -> Result<()>
pub fn set_col_width( &mut self, min_val: i32, max_val: i32, width: f64, ) -> Result<()>
Set the width for a range of columns.
Sourcepub fn insert_page_break(&mut self, cell: &str) -> Result<()>
pub fn insert_page_break(&mut self, cell: &str) -> Result<()>
Insert a page break at the given cell.
Trait Implementations§
Source§impl<'a> Debug for StreamWriter<'a>
impl<'a> Debug for StreamWriter<'a>
Source§impl<'a> Drop for StreamWriter<'a>
impl<'a> Drop for StreamWriter<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for StreamWriter<'a>
impl<'a> !Send for StreamWriter<'a>
impl<'a> !Sync for StreamWriter<'a>
impl<'a> !UnwindSafe for StreamWriter<'a>
impl<'a> Freeze for StreamWriter<'a>
impl<'a> Unpin for StreamWriter<'a>
impl<'a> UnsafeUnpin for StreamWriter<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.