noodles_cram/codecs/aac/
flags.rs1bitflags::bitflags! {
2 #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
4 pub struct Flags: u8 {
5 const ORDER = 0x01;
7 const RESERVED = 0x02;
9 const EXT = 0x04;
11 const STRIPE = 0x08;
13 const NO_SIZE = 0x10;
15 const CAT = 0x20;
17 const RLE = 0x40;
19 const PACK = 0x80;
21 }
22}
23
24impl From<u8> for Flags {
25 fn from(n: u8) -> Self {
26 Self::from_bits_truncate(n)
27 }
28}
29
30impl From<Flags> for u8 {
31 fn from(flags: Flags) -> Self {
32 flags.bits()
33 }
34}