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§
const INFO: ExporterInfo
Required Associated Types§
Sourcetype Options: DeserializeOwned + Default
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§
Sourcefn export(
output: &mut Output<'_>,
format: &str,
options: Self::Options,
) -> GeopResult<Export>
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".