Trait dae_parser::ParseGeom[][src]

pub trait ParseGeom: Default {
    const NAME: &'static str;

    fn parse(it: &mut Peekable<Children<'_>>) -> Result<Self, Error>;
fn validate(_: &Geom<Self>) -> Result<(), Error>; }
Expand description

The trait for types that can appear in a Geom<T>.

Associated Constants

The name of the element for the enclosing Geom, for example "lines" for LineGeom.

Required methods

Parse the data from an element iterator.

Perform custom validation on the resulting Geom<T> before yielding it.

Implementors