pub unsafe trait BigarrayElt: Copy {
const KIND: i32;
}
Expand description
Bigarray kind
§Safety
This is unsafe to implement, because it allows casts
to the implementing type (through OCaml<Array1<T>>::as_slice()
).
To make this safe, the type implementing this trait must be safe to transmute from OCaml data with the relevant KIND.
Required Associated Constants§
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.