Trait geozero::PropertyProcessor[][src]

pub trait PropertyProcessor {
    fn property(
        &mut self,
        idx: usize,
        name: &str,
        value: &ColumnValue<'_>
    ) -> Result<bool> { ... } }
Expand description

Feature property processing trait.

Usage example:

use geozero::{PropertyProcessor, ColumnValue, error::Result};

struct PropertyPrinter;

impl PropertyProcessor for PropertyPrinter {
    fn property(&mut self, i: usize, n: &str, v: &ColumnValue) -> Result<bool> {
        println!("columnidx: {} name: {} value: {:?}", i, n, v);
        Ok(false) // don't abort
    }
}

Provided methods

Process property value. Abort processing, if return value is true.

Implementations on Foreign Types

Implementors