Trait flatgeobuf::FeatureProperties
source · pub trait FeatureProperties {
// Required method
fn process_properties<P>(
&self,
processor: &mut P
) -> Result<bool, GeozeroError>
where P: PropertyProcessor;
// Provided methods
fn property<T>(&self, name: &str) -> Result<T, GeozeroError>
where T: PropertyReadType { ... }
fn property_n<T>(&self, n: usize) -> Result<T, GeozeroError>
where T: PropertyReadType { ... }
fn properties(&self) -> Result<HashMap<String, String>, GeozeroError> { ... }
}
Expand description
Feature properties processing API
Required Methods§
sourcefn process_properties<P>(&self, processor: &mut P) -> Result<bool, GeozeroError>where
P: PropertyProcessor,
fn process_properties<P>(&self, processor: &mut P) -> Result<bool, GeozeroError>where
P: PropertyProcessor,
Process feature properties.
Provided Methods§
sourcefn property<T>(&self, name: &str) -> Result<T, GeozeroError>where
T: PropertyReadType,
fn property<T>(&self, name: &str) -> Result<T, GeozeroError>where
T: PropertyReadType,
Get property value by name
An error ColumnNotFound
can be interpreted as Null value.
sourcefn property_n<T>(&self, n: usize) -> Result<T, GeozeroError>where
T: PropertyReadType,
fn property_n<T>(&self, n: usize) -> Result<T, GeozeroError>where
T: PropertyReadType,
Get property value by number
An error ColumnNotFound
can be interpreted as Null value.
sourcefn properties(&self) -> Result<HashMap<String, String>, GeozeroError>
fn properties(&self) -> Result<HashMap<String, String>, GeozeroError>
Return all properties in a HashMap
Use process_properties
for zero-copy access
Object Safety§
This trait is not object safe.