Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Add a method to check if a semantic type implements a trait #141

Open
xFrednet opened this issue Jun 16, 2023 · 1 comment
Open

API: Add a method to check if a semantic type implements a trait #141

xFrednet opened this issue Jun 16, 2023 · 1 comment
Assignees
Labels
A-api Area: Stable API C-enhancement Category: New feature or request
Milestone

Comments

@xFrednet
Copy link
Member

This method could look similar to Clippy's implements_trait util.

Once #93 is resolved, we should have access to the TyDefId of traits. Semantic paths are also almost done (#139). This function will require an option to have the user specify generic arguments for the trait.

In short: This will be fun or at least complex, but the base for this should be set with the two linked issued.

@xFrednet xFrednet added C-enhancement Category: New feature or request A-api Area: Stable API labels Jun 16, 2023
@xFrednet xFrednet added this to the v0.0.1 milestone Jun 16, 2023
@xFrednet xFrednet changed the title API: Add a method to check if a specific type implements a trait API: Add a method to check if a semantic type implements a trait Jun 16, 2023
@xFrednet xFrednet modified the milestones: v0.1.0, v0.2.0 Jul 16, 2023
@xFrednet
Copy link
Member Author

Not sure, if I'll be able to complete this for v0.2.0, but I've added it to the tracker for now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-api Area: Stable API C-enhancement Category: New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant