pub trait ParseLibrary: XNode {
    const LIBRARY: &'static str;

    fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>;
    fn mk_element(lib: Library<Self>) -> LibraryElement;
}
Expand description

A trait for nodes that can be placed in a library element.

Required Associated Constants

The name of the library element. For example, the Geometry element has LIBRARY = "library_geometries", and the corresponding library type is Library<Geometry>.

Required Methods

Extract the library from a single LibraryElement.

Make a LibraryElement from a Library.

Implementors