double_trait/
lib.rs

1// Reexport the double macro from our derive crate
2pub use double_derive::double;
3
4/// An empty Dummy type. Each trait generated by the [`double`] macro will be implemented for this
5/// type.
6///
7/// ```no_run
8/// use double_trait::{double, Dummy};
9///
10/// #[double(DoubleTrait)]
11/// trait OrgTrait {
12///     fn answer(&self) -> i32;
13/// }
14///
15/// OrgTrait::answer(&Dummy); // Compiles, but raises panic with `unimplemented!()`
16/// ```
17pub struct Dummy;