≈ the.bay.news

New Crate: Provide your library users with free implementations of many traits

The Rust Programming Language Forum
New Crate: Provide your library users with free implementations of many traits
I needed this, so I wrote it. You might need it too, so here it is: delegate-trait on crates.io To quote the readme This crate lets library authors provide downstream crates with automatic implementations of (possibly many) traits by implementing a single "delegate" trait. For example, a library author could provide some traits that are expected to be commonly implemented: trait Surface { fn area(&self) -> f64; } trait Body { fn volume(&self) -> f64; } To allow these traits to be a...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.