Skip to main content

Outputs

Struct Outputs 

Source
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

Source

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.

Source

pub fn inspector<I: Inspector>(self, inspector: I) -> GeopResult<Self>

Adds inspector. Fails if one of its kind is there already.

Source

pub fn exporters(&self) -> Vec<&'static ExporterInfo>

What each exporter is, in the order they were added.

Source

pub fn inspectors(&self) -> Vec<&'static InspectorInfo>

What each inspector is, in the order they were added.

Source

pub fn get_exporter(&self, kind: &str) -> GeopResult<&dyn ErasedExporter>

The exporter kind.

Source

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.

Source

pub fn get_inspector(&self, kind: &str) -> GeopResult<&dyn ErasedInspector>

The inspector kind.

Trait Implementations§

Source§

impl Default for Outputs

Source§

fn default() -> Outputs

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.