Skip to main content

bit_names

Function bit_names 

Source
pub fn bit_names<V: Source>(
    ast: &Ast,
    type_: Id<TypeNode>,
    value: &V,
    path: &str,
) -> Result<Vec<(String, u16)>, ProbeError>
Expand description

The bit names a bitmask value sets, each with its position.

ยงErrors

ProbeError::Mismatch for a bound Table 33 does not tabulate, for an entry that is not a string, or for a bit at or past the bound; ProbeError::Unknown for a name the bitmask does not declare.