Skip to main content

Module output

Module output 

Source
Expand description

What is made of a part rather than in it: files written from what a program built (Exporter), and questions answered about it (Inspector). Neither is a step: exporting and inspecting change no program and are nothing to undo.

A crate that writes a format, or answers a question, implements one of the traits on a unit struct, as an operation does; an editor offers those registered in its Outputs, by their infos, and knows nothing more of them. The options each takes are its own, sent as JSON.

Structs§

Answer
An inspector’s answer as a front end shows it, whatever the inspector: text, tables and groups of them, and what to do next — built by the inspector (Inspector::show), so that a front end knows none.
AnswerAction
A button of an Answer.
Bounded
A number as a report shows it — a value, and how far the truth may be from it: the midpoint of an enclosure, and its half-width.
Export
A file written for a front end to save.
ExporterInfo
What an exporter is to a front end: how it is asked for, what it is offered as, and the formats it writes.
Inspection
An inspector’s answer, as an update carries it.
InspectorInfo
What an inspector is to a front end: how it is asked, what it is offered as, and whether it is asked of the whole part or of picks.
NoOptions
The options of an exporter or inspector that takes none. Like any options, it ignores those it does not take, so a front end may send every exporter the same: a unit () would refuse them.
Output
What a program built, as an exporter or an inspector is given it: the part as far as the program runs, the parts it places included, and the runner and the program it ran, with its state — to ask how its parts can move by running it again.
Outputs
The exporters and inspectors an editor offers, each by its kind, in the order they were added.
Picks
What an inspector that picks takes: elements of what an editor draws of the kinds accepts (see crate::editing::hit::Scene::pick), at most most of them — another pick then replaces the oldest. What each is to the inspector, it selects itself (see crate::selectable).
Row
A row of a Block::Table, or an item of a Block::List.

Enums§

Block
A part of an Answer.
Content
What an exported file holds: text — sent as text — or bytes, sent as bytes, in base64.
Does
What pressing an AnswerAction does.

Traits§

ErasedExporter
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.
ErasedInspector
An Inspector with its types erased, so that inspectors of all kinds can be kept in one super::Outputs. Every inspector is one, through its value.
Exporter
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.
Inspector
A question asked of what a program built. An inspector is a unit struct; what it is told beyond the part is its Inspector::Options.