Skip to main content

ErasedExporter

Trait ErasedExporter 

Source
pub trait ErasedExporter {
    // Required methods
    fn info(&self) -> &'static ExporterInfo;
    fn export(
        &self,
        output: &mut Output<'_>,
        format: Option<&str>,
        options: &Value,
    ) -> GeopResult<Export>;
}
Expand description

An Exporter with its options erased, so that exporters of all kinds can be kept in one super::Outputs. Every exporter is one, through its value.

Required Methods§

Source

fn info(&self) -> &'static ExporterInfo

Source

fn export( &self, output: &mut Output<'_>, format: Option<&str>, options: &Value, ) -> GeopResult<Export>

The file of output in format — its first, if None — with options as sent.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§