pub unsafe trait Shape {
type ARR<T>;
const LEN: usize = 0usize;
// Required method
fn new<T>() -> Self::ARR<T>
where T: Copy + Default;
}Provided Associated Constants§
Required Associated Types§
Required Methods§
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.