Skip to main content

NoOverlap

Trait NoOverlap 

Source
pub unsafe trait NoOverlap { }
Expand description

Marks structs that can be used stand-alone, e.g. no range

§Safety

Safe only if the struct does not any memory outside of its own memory range E.g. @range annotations use the next struct’s memory and must not implement this

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§