Struct constmuck::ImplsCopy [−][src]
pub struct ImplsCopy<T> { /* fields omitted */ }
Expand description
Encodes that a T
is trivially copyable,
avoiding requiring (unstable as of 2021) trait bounds in const fn
s.
Related: the copying
module
Bound
This currently requires Pod
because the approach constmuck has for copying uses
an intermediate MaybeUninit<[u8; N]>
,
which isn’t settled as being sound to use with pointer types,
but is guaranteed sound for Pod
types.
If there’s a more permissive bound that allows more non-pointer-containing
Copy
types, ImplsCopy
will be changed to use that.