Function capstone_rust::capstone::support_arch [] [src]

pub fn support_arch(arch: cs_arch) -> bool

Check if capstone supports an arch.

Returns true if arch is supported.

Examples

use capstone_rust::capstone as cs;

let supported = if cs::support_arch(cs::cs_arch::CS_ARCH_ARM) { "is" } else { "isn't" };
println!("The ARM architecture {} supported!", supported);