pub struct OwnedSheetStreamReader { /* private fields */ }Expand description
Owning variant of SheetStreamReader for use in FFI contexts where
lifetime parameters are not supported (e.g., napi classes).
Stores its own copy of the shared string table and the XML byte source, avoiding any borrowed references. The parsing logic delegates to the same free functions used by the borrowed reader.
Implementations§
Source§impl OwnedSheetStreamReader
impl OwnedSheetStreamReader
Sourcepub fn new(
xml_bytes: Vec<u8>,
sst: SharedStringTable,
row_limit: Option<u32>,
) -> Self
pub fn new( xml_bytes: Vec<u8>, sst: SharedStringTable, row_limit: Option<u32>, ) -> Self
Create a new owned streaming reader.
xml_bytes is the raw worksheet XML. sst is a read-only clone of
the shared string table. row_limit optionally caps the total number
of rows returned.
Auto Trait Implementations§
impl Freeze for OwnedSheetStreamReader
impl RefUnwindSafe for OwnedSheetStreamReader
impl Send for OwnedSheetStreamReader
impl Sync for OwnedSheetStreamReader
impl Unpin for OwnedSheetStreamReader
impl UnwindSafe for OwnedSheetStreamReader
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