Home
last modified time | relevance | path

Searched refs:EnumVariantValue (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/bindgen/src/ir/
Denum_ty.rs95 cursor.enum_val_boolean().map(EnumVariantValue::Boolean) in from_ty()
97 cursor.enum_val_signed().map(EnumVariantValue::Signed) in from_ty()
99 cursor.enum_val_unsigned().map(EnumVariantValue::Unsigned) in from_ty()
235 val: EnumVariantValue,
243 pub enum EnumVariantValue { enum
260 val: EnumVariantValue, in new() argument
283 pub fn val(&self) -> EnumVariantValue { in val() argument
/external/rust/crates/bindgen/src/
Dcallbacks.rs5 pub use crate::ir::enum_ty::{EnumVariantCustomBehavior, EnumVariantValue};
59 _variant_value: EnumVariantValue, in enum_variant_behavior() argument
69 _variant_value: EnumVariantValue, in enum_variant_name() argument
/external/rust/crates/bindgen/src/codegen/
Dmod.rs33 use crate::ir::enum_ty::{Enum, EnumVariant, EnumVariantValue};
2635 EnumVariantValue::Boolean(v) if is_rust_enum => { in with_variant()
2638 EnumVariantValue::Boolean(v) => quote!(#v), in with_variant()
2639 EnumVariantValue::Signed(v) => helpers::ast_ty::int_expr(v), in with_variant()
2640 EnumVariantValue::Unsigned(v) => helpers::ast_ty::uint_expr(v), in with_variant()