pub fn enabled(&self, target: &str) -> bool {
        let func = Function::get("module._Enabled").expect("API function always exists");
        // `unwrap` is safe here because if there is any error during the
        // function call, it would occur in `call_packed!`.
        let tgt = CString::new(target).unwrap();
        let ret: i64 = call_packed!(func, tgt.as_c_str())
            .unwrap()
            .try_into()
            .unwrap();
        ret != 0
    }
/// Checks if a target device is enabled for a module.
Checks if a target device is enabled for a module.
Checks if a target device is enabled for a module .
pub fn enabled(&self, target: &str) -> bool {
        let func = Function::get("module._Enabled").expect("API function always exists");
        // `unwrap` is safe here because if there is any error during the
        // function call, it would occur in `call_packed!`.
        let tgt = CString::new(target).unwrap();
        let ret: i64 = call_packed!(func, tgt.as_c_str())
            .unwrap()
            .try_into()
            .unwrap();
        ret != 0
    }
pub fn enabled ( & self , target : & str ) -> bool { let func = Function :: get ( " " ) . expect ( " " ) ; // `unwrap` is safe here because if there is any error during the // function call, it would occur in `call_packed!`. let tgt = CString :: new ( target ) . unwrap ( ) ; let ret : i64 = call_packed ! ( func tgt as_c_str ( ) ) . unwrap ( ) . try_into ( ) . unwrap ( ) ; ret != 0 }
Checks if a target device is enabled for a module.
Checks if a target device is enabled for a module .
&self
target
&str
&self
target
&str