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
Given a struct with generics, it's currently not possible to access just the struct name, doing struct_defintion.as_type() retrieves StructName<gen...>. This prevents using the struct to call its methods, for example.
Happy Case
Something akin to struct_definition.name() exists, which retrieves a Quoted value that's just the name of the struct without generics.
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
Blocker
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered:
# Description
## Problem\*
Resolves#5958
## Summary\*
Adds `StructDefinition::name`
## Additional Context
## Documentation\*
Check one:
- [ ] No documentation needed.
- [x] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.
# PR Checklist\*
- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
Problem
Given a struct with generics, it's currently not possible to access just the struct name, doing
struct_defintion.as_type()
retrievesStructName<gen...>
. This prevents using the struct to call its methods, for example.Happy Case
Something akin to
struct_definition.name()
exists, which retrieves aQuoted
value that's just the name of the struct without generics.Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
Blocker
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: