It would be convenient to have from_be_bytes and from_le_bytes methods for 24bit similar to https://doc.rust-lang.org/std/primitive.u32.html#method.from_be_bytes.
This could provide a standardized way to convert the type from source instead of implementing brittle custom solutions which could easily end up wrong without errors by skewing the dbm (e.g. here).
As we already implemented it there I am happy to provide an PR for it.
It would be convenient to have
from_be_bytesandfrom_le_bytesmethods for 24bit similar to https://doc.rust-lang.org/std/primitive.u32.html#method.from_be_bytes.This could provide a standardized way to convert the type from source instead of implementing brittle custom solutions which could easily end up wrong without errors by skewing the dbm (e.g. here).
As we already implemented it there I am happy to provide an PR for it.