1//! [`Copy`](trait@std::marker::Copy) implementation.
2
3use crate::{DeriveTrait, TraitImpl};
4
5/// Dummy-struct implement [`Trait`](crate::Trait) for
6/// [`Copy`](trait@std::marker::Copy).
7pub struct Copy;
8
9impl 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