Trait geozero::PropertyProcessor[][src]

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

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

fn property(
    &mut self,
    idx: usize,
    name: &str,
    value: &ColumnValue<'_>
) -> Result<bool>
[src]

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

Loading content...

Implementations on Foreign Types

impl PropertyProcessor for HashMap<String, String>[src]

Loading content...

Implementors

impl PropertyProcessor for GeoWriter[src]

impl PropertyProcessor for GeosWriter<'_>[src]

impl PropertyProcessor for ProcessorSink[src]

impl<W: Write> PropertyProcessor for GeoJsonWriter<'_, W>[src]

impl<W: Write> PropertyProcessor for SvgWriter<'_, W>[src]

impl<W: Write> PropertyProcessor for WkbWriter<'_, W>[src]

impl<W: Write> PropertyProcessor for WktWriter<'_, W>[src]

Loading content...