NIF stubs for the CubeCL Rust backend.
Each function delegates to the Rust NIF implementation.
If the NIF is not loaded, returns {:error, :nif_not_loaded}.
Buffers are managed via Rustler ResourceArc — they are automatically
freed when the Elixir term is garbage collected. No manual free is needed.