Work around library with private trait in public trait bound

⚓ Rust    📅 2026-04-10    👤 surdeus    👁️ 2      

surdeus

I'm using the wrapped_mono crate which has a generic struct Method that has a trait bound, but the trait is private, which prevents me from using the type generically. Is there a workaround?

https://github.com/FractalFir/wrapped_mono/blob/b3053fa3e8d78e2f774d987a578077acfbab792f/src/method.rs#L10

Minimal reproducer:

12 posts - 3 participants

Read full topic

🏷️ Rust_feed