diff options
Diffstat (limited to 'rust/src/types.rs')
| -rw-r--r-- | rust/src/types.rs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/rust/src/types.rs b/rust/src/types.rs index ec12712b..2567f72d 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -1620,22 +1620,22 @@ impl DataVariable { } } -// unsafe impl CoreOwnedArrayProvider for DataVariable { -// type Raw = BNDataVariable; -// type Context = (); +unsafe impl CoreOwnedArrayProvider for DataVariable { + type Raw = BNDataVariable; + type Context = (); -// unsafe fn free(raw: *mut Self::Raw, count: usize, _context: &Self::Context) { -// BNFreeDataVariables(raw, count); -// } -// } + unsafe fn free(raw: *mut Self::Raw, count: usize, _context: &Self::Context) { + BNFreeDataVariables(raw, count); + } +} -// unsafe impl<'a> CoreOwnedArrayWrapper<'a> for DataVariable { -// type Wrapped = &'a DataVariable; +unsafe impl<'a> CoreOwnedArrayWrapper<'a> for DataVariable { + type Wrapped = &'a DataVariable; -// unsafe fn wrap_raw(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped { -// mem::transmute(raw) -// } -// } + unsafe fn wrap_raw(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped { + mem::transmute(raw) + } +} ///////////////////////// // DataVariableAndName |
