Safe rust interface
Loading
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()
)