| Crates.io | cc4 |
| lib.rs | cc4 |
| version | 0.1.2 |
| created_at | 2021-01-28 17:46:51.255109+00 |
| updated_at | 2021-01-28 17:54:01.207694+00 |
| description | Very simple implementation of the four_cc/fourcc algorithm as a const fn |
| homepage | |
| repository | |
| max_upload_size | |
| id | 347704 |
| size | 2,357 |
Implementation of four_cc in Rust as a const fn. Supports both little and big endian systems.
four_cc(b"code");
Since four_cc is a const fn, you can also use it to define enum values for enums represented by u32.
#[repr(u32)]
pub enum Id {
Apple = four_cc(b"appl"),
}