[][src]Trait atelier_core::io::ModelReader

pub trait ModelReader: Default {
    fn representation(&self) -> &'static str;
fn read(&mut self, r: &mut impl Read) -> Result<Model>; }

Trait implemented to read a model from a specific representation.

Required methods

fn representation(&self) -> &'static str

The display name of the representation this trait reads.

fn read(&mut self, r: &mut impl Read) -> Result<Model>

Read a model from the given implementation of Read.

Loading content...

Implementors

Loading content...