Safe rust interface
Compare changes
Files
3+ 353
− 0
@@ -330,6 +334,10 @@ impl CUDABox {
@@ -330,6 +334,10 @@ impl CUDABox {
@@ -354,3 +362,348 @@ macro_rules! runner {
@@ -354,3 +362,348 @@ macro_rules! runner {
Resolves #19 (closed).
What's done so far:
HerculesImmBox
which provides a standard interface for creating inputs to Hercules functions and handling their outputs in a safe manner.HerculesImmBox
in cava and edge detection, which significantly cleaned up the codeHerculesMutBox
which provides a standard interface but for mutable references. Not actually sure whether this is ever needed.ToDo:
HerculesImmBux
/HerculesMutBox
and returns the same, since these boxes are typed and so it improves type-safety (it also removes most the remaining weirdness of the interface, specifically the .to()
)