Function bitflags::serde::serialize

source ·
pub fn serialize<B: Flags, S: Serializer>(
    flags: &B,
    serializer: S
) -> Result<S::Ok, S::Error>where
    B::Bits: WriteHex + Serialize,
Expand description

Serialize a set of flags as a human-readable string or their underlying bits.

Any unknown bits will be retained.