#[doc(hidden)]
#[allow(missing_copy_implementations)]
#[allow(missing_debug_implementations)]
pub struct IcedFeatures;
impl IcedFeatures {
#[must_use]
#[inline]
pub const fn has_gas() -> bool {
cfg!(feature = "gas")
}
#[must_use]
#[inline]
pub const fn has_intel() -> bool {
cfg!(feature = "intel")
}
#[must_use]
#[inline]
pub const fn has_masm() -> bool {
cfg!(feature = "masm")
}
#[must_use]
#[inline]
pub const fn has_nasm() -> bool {
cfg!(feature = "nasm")
}
#[must_use]
#[inline]
pub const fn has_fast_fmt() -> bool {
cfg!(feature = "fast_fmt")
}
#[must_use]
#[inline]
pub const fn has_decoder() -> bool {
cfg!(feature = "decoder")
}
#[must_use]
#[inline]
pub const fn has_encoder() -> bool {
cfg!(feature = "encoder")
}
#[must_use]
#[inline]
pub const fn has_block_encoder() -> bool {
cfg!(all(feature = "encoder", feature = "block_encoder"))
}
#[must_use]
#[inline]
pub const fn has_op_code_info() -> bool {
cfg!(all(feature = "encoder", feature = "op_code_info"))
}
#[must_use]
#[inline]
pub const fn has_instruction_info() -> bool {
cfg!(feature = "instr_info")
}
}