Trait polars::prelude::IndexOfSchema
source · pub trait IndexOfSchema: Debug {
// Required methods
fn index_of(&self, name: &str) -> Option<usize>;
fn get_names(&self) -> Vec<&str>;
// Provided method
fn try_index_of(&self, name: &str) -> Result<usize, PolarsError> { ... }
}
Expand description
This trait exists to be unify the API of polars Schema and arrows Schema