Function from_str_truncate

fn from_str_truncate<B: Flags>(input: &str) -> Result<B, ParseError>
where
    <B as >::Bits: ParseHex

Parse a flags value from text.

This function will fail on any names that don't correspond to defined flags. Unknown bits will be ignored.