pub trait BpsvRowOps {
// Required methods
fn len(&self) -> usize;
fn get_raw(&self, index: usize) -> Option<&str>;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn get_raw_by_name(
&self,
field_name: &str,
schema: &BpsvSchema,
) -> Option<&str> { ... }
fn to_map(&self, schema: &BpsvSchema) -> Result<HashMap<String, String>> { ... }
}Expand description
Common functionality for BPSV row types
Required Methods§
Provided Methods§
Sourcefn get_raw_by_name(&self, field_name: &str, schema: &BpsvSchema) -> Option<&str>
fn get_raw_by_name(&self, field_name: &str, schema: &BpsvSchema) -> Option<&str>
Get a raw string value by field name using the schema