Function pr47::util::type_assert::assert_clone [−][src]
pub const fn assert_clone<T>() where
Void: AssertClone<T>,
Expand description
Assert that the type parameter T
is cloneable.
// Succeeds because std::string::String is cloneable
pr47::util::type_assert::assert_clone::<String>();
// Fails because std::thread::JoinHandle is not cloneable
pr47::util::type_assert::assert_clone::<std::thread::JoinHandle<()>>();