JC
Size: a a a
JC
Э
struct PvigemBox {
type: TargetType,
ptr: NonNull<_VIGEM_TARGET_T>,
}
impl PvigemBox {
pub fn new(tt: TargetType) -> Option<Self> {
let raw = match tt { /* */ };
NonNull::new(raw).map(|ptr| Self {type: tt, ptr})
}
}в🧇
SD
struct PvigemBox {
type: TargetType,
ptr: NonNull<_VIGEM_TARGET_T>,
}
impl PvigemBox {
pub fn new(tt: TargetType) -> Option<Self> {
let raw = match tt { /* */ };
NonNull::new(raw).map(|ptr| Self {type: tt, ptr})
}
}в🧇
Э
impl Drop for PvigemBox {
fn drop(&mut self) {
match self.type {
X => dealloc_X(self.ptr)
Y => dealloc_Y(self.ptr)
}
}
}SD
в🧇
SD
Э
Э
Э
Э
Э
Э
SD
Э
Э
в🧇
vigem_target_free?Э