bitflags::parser

Function to_writer

Source
pub fn to_writer<B: Flags>(flags: &B, writer: impl Write) -> Result<(), Error>
where B::Bits: WriteHex,
Expand description

Write a flags value as text.

Any bits that aren’t part of a contained flag will be formatted as a hex number.