1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! [`Copy`](std::marker::Copy) implementation.

use crate::{DeriveTrait, TraitImpl};

/// Dummy-struct implement [`Trait`](crate::Trait) for
/// [`Copy`](std::marker::Copy).
pub struct Copy;

impl TraitImpl for Copy {
	fn as_str(&self) -> &'static str {
		"Copy"
	}

	fn default_derive_trait(&self) -> DeriveTrait {
		DeriveTrait::Copy
	}

	fn supports_union(&self) -> bool {
		true
	}
}