1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/tauri-apps/gir-files)
// DO NOT EDIT

use glib::{bitflags::bitflags, translate::*};

bitflags! {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
    #[doc(alias = "JSCValuePropertyFlags")]
    pub struct ValuePropertyFlags: u32 {
        #[doc(alias = "JSC_VALUE_PROPERTY_CONFIGURABLE")]
        const CONFIGURABLE = ffi::JSC_VALUE_PROPERTY_CONFIGURABLE as _;
        #[doc(alias = "JSC_VALUE_PROPERTY_ENUMERABLE")]
        const ENUMERABLE = ffi::JSC_VALUE_PROPERTY_ENUMERABLE as _;
        #[doc(alias = "JSC_VALUE_PROPERTY_WRITABLE")]
        const WRITABLE = ffi::JSC_VALUE_PROPERTY_WRITABLE as _;
    }
}

#[doc(hidden)]
impl IntoGlib for ValuePropertyFlags {
  type GlibType = ffi::JSCValuePropertyFlags;

  #[inline]
  fn into_glib(self) -> ffi::JSCValuePropertyFlags {
    self.bits()
  }
}

#[doc(hidden)]
impl FromGlib<ffi::JSCValuePropertyFlags> for ValuePropertyFlags {
  #[inline]
  unsafe fn from_glib(value: ffi::JSCValuePropertyFlags) -> Self {
    Self::from_bits_truncate(value)
  }
}