pub struct Outputs { /* private fields */ }Expand description
The exporters and inspectors an editor offers, each by its kind, in the order they were added.
Implementations§
Source§impl Outputs
impl Outputs
Sourcepub fn exporter<E: Exporter>(self, exporter: E) -> GeopResult<Self>
pub fn exporter<E: Exporter>(self, exporter: E) -> GeopResult<Self>
Adds exporter. Fails if one of its kind is there already: a front
end could not tell the two apart.
Sourcepub fn inspector<I: Inspector>(self, inspector: I) -> GeopResult<Self>
pub fn inspector<I: Inspector>(self, inspector: I) -> GeopResult<Self>
Adds inspector. Fails if one of its kind is there already.
Sourcepub fn exporters(&self) -> Vec<&'static ExporterInfo>
pub fn exporters(&self) -> Vec<&'static ExporterInfo>
What each exporter is, in the order they were added.
Sourcepub fn inspectors(&self) -> Vec<&'static InspectorInfo>
pub fn inspectors(&self) -> Vec<&'static InspectorInfo>
What each inspector is, in the order they were added.
Sourcepub fn get_exporter(&self, kind: &str) -> GeopResult<&dyn ErasedExporter>
pub fn get_exporter(&self, kind: &str) -> GeopResult<&dyn ErasedExporter>
The exporter kind.
Sourcepub fn exporter_for(&self, format: &str) -> GeopResult<&dyn ErasedExporter>
pub fn exporter_for(&self, format: &str) -> GeopResult<&dyn ErasedExporter>
The exporter that writes format — a file’s extension, stl —
the first one added if several do.
Sourcepub fn get_inspector(&self, kind: &str) -> GeopResult<&dyn ErasedInspector>
pub fn get_inspector(&self, kind: &str) -> GeopResult<&dyn ErasedInspector>
The inspector kind.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Outputs
impl !Send for Outputs
impl !Sync for Outputs
impl !UnwindSafe for Outputs
impl Freeze for Outputs
impl Unpin for Outputs
impl UnsafeUnpin for Outputs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more