Skip to main content

Exporter

Trait Exporter 

Source
pub trait Exporter: 'static {
    type Options: DeserializeOwned + Default;

    const INFO: ExporterInfo;

    // Required method
    fn export(
        output: &mut Output<'_>,
        format: &str,
        options: Self::Options,
    ) -> GeopResult<Export>;
}
Expand description

A kind of file written from what a program built: a mesh, a STEP file, a drawing, a robot. An exporter is a unit struct; what it is told beyond the part is its Exporter::Options.

Required Associated Constants§

Required Associated Types§

Source

type Options: DeserializeOwned + Default

What it is told besides the part and the format, as a front end sends it (JSON); the defaults where it sends none.

Required Methods§

Source

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

The file of output in format, one of ExporterInfo::formats.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§