Skip to main content

assert_copy_static

Function assert_copy_static 

Source
pub fn assert_copy_static<T>(_: &T)
where T: Copy + 'static,
Expand description

Compile-time check for Copy + 'static - helper for macros

Used by #[deftly(has_memory_cost(copy))] and memory_cost_structural_copy! to check that the type really is suitable.