#dyn

dyn-clonable

Attribute wrapper for dyn-clone

1 unstable release

0.9.0 Dec 24, 2019

#625 in Rust patterns

Download history 14797/week @ 2022-08-14 15757/week @ 2022-08-21 17364/week @ 2022-08-28 16536/week @ 2022-09-04 15562/week @ 2022-09-11 17173/week @ 2022-09-18 17719/week @ 2022-09-25 16989/week @ 2022-10-02 17381/week @ 2022-10-09 17408/week @ 2022-10-16 15940/week @ 2022-10-23 16234/week @ 2022-10-30 19705/week @ 2022-11-06 17929/week @ 2022-11-13 17396/week @ 2022-11-20 17450/week @ 2022-11-27

73,356 downloads per month
Used in 321 crates (15 directly)

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

~225–630KB
~15K SLoC