macro_rules! resource_type {
    ($resource_name:ident) => { ... };
}
Expand description

A utility macro for referencing rust-bindgen’s generated names for usage types.

assert_eq!(
  HALUsageReporting_tResourceType::kResourceType_DigitalOutput,
  resource_type!(DigitalOutput)
);

This currently requires the concat_idents feature.