natkeo559 / can-types

A rust crate for encoding or decoding various Controller Area Network (CAN) data types, including the SAE J1939 standard.
https://crates.io/crates/can-types
Apache License 2.0
7 stars 0 forks source link

`Name` Error checking #9

Closed natkeo559 closed 3 months ago

natkeo559 commented 3 months ago

The Name bitfield in can-types needs additional error checking for the checked functions try_from_bits and try_from_hex. See other modules for examples of how to implement the error checking.