pub fn to_writer<B: Flags>(flags: &B, writer: impl Write) -> Result<(), Error>where B::Bits: WriteHex,
Write a set of flags to a writer.
Any bits that don’t correspond to a valid flag will be formatted as a hex number.