pub trait Range:
Debug
+ Send
+ Sync {
// Required methods
fn get(&self, row: usize, col: usize) -> Result<LiteralValue, ExcelError>;
fn dimensions(&self) -> (usize, usize);
fn as_any(&self) -> &dyn Any;
// Provided methods
fn is_sparse(&self) -> bool { ... }
fn is_infinite(&self) -> bool { ... }
fn materialise(&self) -> Cow<'_, [Vec<LiteralValue>]> { ... }
fn iter_cells<'a>(&'a self) -> Box<dyn Iterator<Item = LiteralValue> + 'a> { ... }
fn iter_rows<'a>(
&'a self,
) -> Box<dyn Iterator<Item = Vec<LiteralValue>> + 'a> { ... }
}Required Methods§
fn get(&self, row: usize, col: usize) -> Result<LiteralValue, ExcelError>
fn dimensions(&self) -> (usize, usize)
fn as_any(&self) -> &dyn Any
Provided Methods§
fn is_sparse(&self) -> bool
fn is_infinite(&self) -> bool
fn materialise(&self) -> Cow<'_, [Vec<LiteralValue>]>
fn iter_cells<'a>(&'a self) -> Box<dyn Iterator<Item = LiteralValue> + 'a>
fn iter_rows<'a>(&'a self) -> Box<dyn Iterator<Item = Vec<LiteralValue>> + 'a>
Trait Implementations§
Source§impl Range for Box<dyn Range>
impl Range for Box<dyn Range>
fn get(&self, r: usize, c: usize) -> Result<LiteralValue, ExcelError>
fn dimensions(&self) -> (usize, usize)
fn is_sparse(&self) -> bool
fn materialise(&self) -> Cow<'_, [Vec<LiteralValue>]>
fn iter_cells<'a>(&'a self) -> Box<dyn Iterator<Item = LiteralValue> + 'a>
fn iter_rows<'a>(&'a self) -> Box<dyn Iterator<Item = Vec<LiteralValue>> + 'a>
fn as_any(&self) -> &dyn Any
fn is_infinite(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".