Add Engine::register_type_with_name_raw.

This commit is contained in:
Stephen Chung
2021-12-09 12:49:12 +08:00
parent 4421f33b2c
commit d9d44a9683
6 changed files with 29 additions and 13 deletions

View File

@@ -936,7 +936,7 @@ pub struct Engine {
pub(crate) module_resolver: Option<Box<dyn crate::ModuleResolver>>,
/// A map mapping type names to pretty-print names.
pub(crate) type_names: BTreeMap<Identifier, Box<Identifier>>,
pub(crate) type_names: BTreeMap<Identifier, Identifier>,
/// An empty [`ImmutableString`] for cloning purposes.
pub(crate) empty_string: ImmutableString,