Skip to content

Conversation

abr-egn
Copy link
Contributor

@abr-egn abr-egn commented Jul 1, 2025

RUST-1887

This uses the technique described in Alternative Blanket Implementations for a Single Rust Trait to remove the requirement for users to implement the unusual bind trait method for custom types if they want to use them in rawdoc! macros; instead a very small boilerplate impl can now be used. This does complicate the internal type machinery a bit (introduction of a helper trait and some wrapper types for type-level dispatch) but those don't need to be visible and they're well contained.

@abr-egn abr-egn marked this pull request as ready for review July 1, 2025 16:27
@abr-egn abr-egn requested a review from a team as a code owner July 1, 2025 16:27
@abr-egn abr-egn requested a review from isabelatkinson July 1, 2025 16:27
@abr-egn abr-egn merged commit 59c347f into mongodb:main Jul 2, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants