compiler_copy

Function compiler_copy 

Source
pub fn compiler_copy<T, const SIZE: usize>(_src: *const T, _dst: *mut T)
🔬This is a nightly-only experimental API. (profiling_marker_api #148197)
Expand description

Profiling marker for copy operations.

This function is never called at runtime. When -Z annotate-moves is enabled, the compiler creates synthetic debug info that makes copy operations appear as calls to this function in profilers.

The SIZE parameter encodes the size of the type being copied. It’s the same as size_of::<T>(), and is only present for convenience.