You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should be able to pass the TypeWalker a HashMap<Type,RequirePath> so the file is able to reference types it doesn't have access to normally.
A RequirePath contains a string representing what should be placed inside the require ("types/SomeType") and a path to get to the type from the loaded module (TypeMod_1.SomeInnerType.OtherInnerType)
Type could be a string or Cow<'static str> or something else. It just needs to be something the needed type can be compared to.
If a type can not be found while generating the file it should by default stop and return an error. However, a second method should exist that continues, makes a list of types that can't be found and return both.
The text was updated successfully, but these errors were encountered:
You should be able to pass the TypeWalker a HashMap<Type,RequirePath> so the file is able to reference types it doesn't have access to normally.
A RequirePath contains a string representing what should be placed inside the require (
"types/SomeType"
) and a path to get to the type from the loaded module (TypeMod_1.SomeInnerType.OtherInnerType
)Type could be a string or Cow<'static str> or something else. It just needs to be something the needed type can be compared to.
If a type can not be found while generating the file it should by default stop and return an error. However, a second method should exist that continues, makes a list of types that can't be found and return both.
The text was updated successfully, but these errors were encountered: