Function godot::register::property::export_info_functions::export_flags

pub fn export_flags<T>(bits: &[T]) -> PropertyHintInfo
where &'a T: for<'a> Into<ExportValueWithKey<u32>>,
Expand description

Equivalent to @export_flags in Godot.

A flag without a key would be represented as (flag, None), and a flag with a key as (flag, Some(key)).

ยงExamples

export_flags(&[("a", None), ("b", Some(10))]);