#dyn #impl

macro dyn-clonable-impl

Attribute wrapper for dyn-clone

1 unstable release

0.9.0 Dec 24, 2019
Download history 17383/week @ 2022-10-09 17404/week @ 2022-10-16 15930/week @ 2022-10-23 16223/week @ 2022-10-30 19710/week @ 2022-11-06 17923/week @ 2022-11-13 17395/week @ 2022-11-20 18441/week @ 2022-11-27 18169/week @ 2022-12-04 18732/week @ 2022-12-11 19923/week @ 2022-12-18 10315/week @ 2022-12-25 14500/week @ 2023-01-01 18801/week @ 2023-01-08 21008/week @ 2023-01-15 18199/week @ 2023-01-22

73,057 downloads per month
Used in 354 crates (via dyn-clonable)

MIT license

3KB

dyn-clonable

Provides a proc_macro attribute wrapper for dyn-clone.

Usage

use dyn_clonable::*;

#[clonable]
trait MyTrait: Clone {
    fn recite(&self);
}

For additional information, see dtolnay's dyn-clone.

License: MIT

Dependencies

~195–590KB
~14K SLoC