pub trait CopyMoveType:
Clone
+ Default
+ Sized {
const COPY: CSTL_CopyType = _;
// Provided methods
unsafe extern "C" fn raw_copy(
first: NonNull<Self>,
last: NonNull<Self>,
dest: NonNull<Self>,
) { ... }
unsafe extern "C" fn raw_fill(
first: NonNull<Self>,
last: NonNull<Self>,
value: NonNull<Self>,
) { ... }
}
Expand description
Trait for types that can be copied and moved with C++ semantics.
Requires Clone
, but also Default
, see MoveType
for the justification.
Provides a CSTL_CopyType
table.
Provided Associated Constants§
Sourceconst COPY: CSTL_CopyType = _
const COPY: CSTL_CopyType = _
CSTL copyable type table.
Provided Methods§
unsafe extern "C" fn raw_copy( first: NonNull<Self>, last: NonNull<Self>, dest: NonNull<Self>, )
unsafe extern "C" fn raw_fill( first: NonNull<Self>, last: NonNull<Self>, value: NonNull<Self>, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.