pub fn exist(&self) -> bool {
        let func = function::Function::get("_GetDeviceAttr").expect("API function always exists");
        let dt = self.device_type.0 as usize;
        // `unwrap` is ok here because if there is any error,
        // if would occure inside `call_packed!`
        let ret: u64 = call_packed!(func, &dt, &self.device_id, &0)
            .unwrap()
            .try_into()
            .unwrap();
        ret != 0
    }
/// Checks whether the context exists or not.
Checks whether the context exists or not.
Checks whether the context exists or not .
pub fn exist(&self) -> bool {
        let func = function::Function::get("_GetDeviceAttr").expect("API function always exists");
        let dt = self.device_type.0 as usize;
        // `unwrap` is ok here because if there is any error,
        // if would occure inside `call_packed!`
        let ret: u64 = call_packed!(func, &dt, &self.device_id, &0)
            .unwrap()
            .try_into()
            .unwrap();
        ret != 0
    }
pub fn exist ( & self ) -> bool { let func = function :: Function :: get ( " " ) . expect ( " " ) ; let dt = self . device_type . 0 as usize ; // `unwrap` is ok here because if there is any error, // if would occure inside `call_packed!` let ret : u64 = call_packed ! ( func dt self device_id 0 ) . unwrap ( ) . try_into ( ) . unwrap ( ) ; ret != 0 }
Checks whether the context exists or not.
Checks whether the context exists or not .
&self
&self