iced_x86/
iced_features.rs1#[doc(hidden)]
6#[allow(missing_copy_implementations)]
7#[allow(missing_debug_implementations)]
8pub struct IcedFeatures;
9
10impl IcedFeatures {
11 #[must_use]
13 #[inline]
14 pub const fn has_gas() -> bool {
15 cfg!(feature = "gas")
16 }
17
18 #[must_use]
20 #[inline]
21 pub const fn has_intel() -> bool {
22 cfg!(feature = "intel")
23 }
24
25 #[must_use]
27 #[inline]
28 pub const fn has_masm() -> bool {
29 cfg!(feature = "masm")
30 }
31
32 #[must_use]
34 #[inline]
35 pub const fn has_nasm() -> bool {
36 cfg!(feature = "nasm")
37 }
38
39 #[must_use]
41 #[inline]
42 pub const fn has_fast_fmt() -> bool {
43 cfg!(feature = "fast_fmt")
44 }
45
46 #[must_use]
48 #[inline]
49 pub const fn has_decoder() -> bool {
50 cfg!(feature = "decoder")
51 }
52
53 #[must_use]
55 #[inline]
56 pub const fn has_encoder() -> bool {
57 cfg!(feature = "encoder")
58 }
59
60 #[must_use]
62 #[inline]
63 pub const fn has_block_encoder() -> bool {
64 cfg!(all(feature = "encoder", feature = "block_encoder"))
65 }
66
67 #[must_use]
69 #[inline]
70 pub const fn has_op_code_info() -> bool {
71 cfg!(all(feature = "encoder", feature = "op_code_info"))
72 }
73
74 #[must_use]
76 #[inline]
77 pub const fn has_instruction_info() -> bool {
78 cfg!(feature = "instr_info")
79 }
80}