pub trait RowSource:
Send
+ Sync
+ 'static {
// Required methods
fn height(&self) -> usize;
fn schema(&self) -> SchemaRef;
fn decode(&self, column: usize, index: &IdxCa) -> PolarsResult<Column>;
}Expand description
A table whose values are decoded from their row numbers.
Required Methods§
fn schema(&self) -> SchemaRef
Sourcefn decode(&self, column: usize, index: &IdxCa) -> PolarsResult<Column>
fn decode(&self, column: usize, index: &IdxCa) -> PolarsResult<Column>
The schema’s columnth column for the rows index names, in that order. The
index comes from the plan’s row index, so it has no nulls and every row is
under Self::height; a source still refuses one that is not, rather than
read past its bytes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".