Trait FeatureSink

Source
pub trait FeatureSink: GeometrySink<Err = Self::FeatErr> + PropertySink<Err = Self::FeatErr> {
    type FeatErr: Error;

    // Required methods
    fn properties_start(&mut self) -> Result<(), Self::FeatErr>;
    fn properties_end(&mut self) -> Result<(), Self::FeatErr>;
    fn feature_start(&mut self, index: usize) -> Result<(), Self::FeatErr>;
    fn feature_end(&mut self, index: usize) -> Result<(), Self::FeatErr>;
}
Expand description

Data sink of FeatureSerializer.

Compatible with geozero::FeatureProcessor.

Required Associated Types§

Required Methods§

Source

fn properties_start(&mut self) -> Result<(), Self::FeatErr>

Source

fn properties_end(&mut self) -> Result<(), Self::FeatErr>

Source

fn feature_start(&mut self, index: usize) -> Result<(), Self::FeatErr>

Source

fn feature_end(&mut self, index: usize) -> Result<(), Self::FeatErr>

Implementors§

Source§

impl<Z: FeatureProcessor> FeatureSink for Z

Available on crate feature geozero only.