Function x11rb::properties::parse_with_flag
source ยท fn parse_with_flag<T: TryParse>(
remaining: &[u8],
flags: u32,
bit: u32,
) -> Result<(Option<T>, &[u8]), ParseError>
Expand description
Parse an element of type T
and turn it into an Option
by checking if the given bit
is set
in flags
.