Function go_away::registry_to_output[][src]

pub fn registry_to_output<'a, Format>(registry: &'a TypeRegistry) -> String where
    Format: From<&'a Type> + Display
Expand description

Generates code for all the types in the TypeRegistry

You should provide go_away::GoType or go_away::TypeScriptType as a generic parameter with turbofish syntax to decide which format to output.

Note that this is a WIP API and is likely to be ditched/changed in future releases.