// build a type from what is present here
build a type from what is present here
build a type from what is present here
pub fn build(&self, root: K) -> Option<Type> {
        let mut parts = Vec::new();
        let mut visited = HashMap::new();
        match self.get_or_add(&root, &mut parts, &mut visited) {
            Ok(root) => Some(Type { parts, root }),
            Err(e) => {
                eprintln!("{}", e);
                None
            }
        }
    }
pub fn build ( & self , root : K ) -> Option < Type > { let mut parts = Vec :: new ( ) ; let mut visited = HashMap :: new ( ) ; match self . get_or_add ( & root , & mut parts , & mut visited ) { Ok ( root ) => Some ( Type { parts , root } ) , Err ( e ) => { eprintln ! ( " " e ) ; None } } }
build a type from what is present here
build a type from what is present here
&self
root
K