| 1 | //! [`Copy`](trait@std::marker::Copy) implementation. |
|---|---|
| 2 | |
| 3 | use crate::{DeriveTrait, TraitImpl}; |
| 4 | |
| 5 | /// Dummy-struct implement [`Trait`](crate::Trait) for |
| 6 | /// [`Copy`](trait@std::marker::Copy). |
| 7 | pub struct Copy; |
| 8 | |
| 9 | impl TraitImpl for Copy { |
| 10 | fn as_str(&self) -> &'static str { |
| 11 | "Copy" |
| 12 | } |
| 13 | |
| 14 | fn default_derive_trait(&self) -> DeriveTrait { |
| 15 | DeriveTrait::Copy |
| 16 | } |
| 17 | |
| 18 | fn supports_union(&self) -> bool { |
| 19 | true |
| 20 | } |
| 21 | } |
| 22 |
