Trait NotClone

Source
pub trait NotClone {
    const IS_CLONE: bool = false;
    const FN_CLONE: FnCloneRaw = {ds::types::unimpl_clone as unsafe fn(*const u8, *mut u8)};
}
Expand description

A helper trait for TypeHelper to detect not Clone types.

See TypeHelper documentation for more details.

Provided Associated Constants§

Source

const IS_CLONE: bool = false

Source

const FN_CLONE: FnCloneRaw = {ds::types::unimpl_clone as unsafe fn(*const u8, *mut u8)}

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.

Implementors§