The PR uses the typenum create to define quantity types that are checked by the compiler. With this addition many Results or unwraps can be eliminated and the error messages in Python should become more straightforward, because the units are directly checked at the Python/Rust interface.
Error messages in Rust are pretty cryptic though :|
The PR uses the
typenum
create to define quantity types that are checked by the compiler. With this addition manyResult
s orunwrap
s can be eliminated and the error messages in Python should become more straightforward, because the units are directly checked at the Python/Rust interface.Error messages in Rust are pretty cryptic though :|