pub struct WorksheetHandle { /* private fields */ }Expand description
A bindings-friendly worksheet handle backed by an Arc<RwLockWorkbook directly for better ergonomics.
Implementations§
Source§impl WorksheetHandle
impl WorksheetHandle
pub fn new( wb: Arc<RwLock<Workbook>>, name: impl Into<Arc<str>>, ) -> WorksheetHandle
pub fn name(&self) -> &str
pub fn get_value(&self, row: u32, col: u32) -> Option<LiteralValue>
pub fn get_formula(&self, row: u32, col: u32) -> Option<String>
pub fn set_value( &self, row: u32, col: u32, v: LiteralValue, ) -> Result<(), IoError>
pub fn set_formula(&self, row: u32, col: u32, f: &str) -> Result<(), IoError>
pub fn set_values( &self, start_row: u32, start_col: u32, rows: &[Vec<LiteralValue>], ) -> Result<(), IoError>
pub fn set_formulas( &self, start_row: u32, start_col: u32, rows: &[Vec<String>], ) -> Result<(), IoError>
pub fn read_range(&self, addr: &RangeAddress) -> Vec<Vec<LiteralValue>>
pub fn write_range( &self, cells: BTreeMap<(u32, u32), CellData>, ) -> Result<(), IoError>
pub fn evaluate_cell(&self, row: u32, col: u32) -> Result<LiteralValue, IoError>
Trait Implementations§
Source§impl Clone for WorksheetHandle
impl Clone for WorksheetHandle
Source§fn clone(&self) -> WorksheetHandle
fn clone(&self) -> WorksheetHandle
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 WorksheetHandle
impl RefUnwindSafe for WorksheetHandle
impl Send for WorksheetHandle
impl Sync for WorksheetHandle
impl Unpin for WorksheetHandle
impl UnsafeUnpin for WorksheetHandle
impl UnwindSafe for WorksheetHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more