diff options
Diffstat (limited to 'rust/src/function.rs')
| -rw-r--r-- | rust/src/function.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs index 51c9e634..865a22db 100644 --- a/rust/src/function.rs +++ b/rust/src/function.rs @@ -269,16 +269,18 @@ unsafe impl RefCountable for Function { } } -unsafe impl CoreOwnedArrayProvider for Function { +impl CoreArrayProvider for Function { type Raw = *mut BNFunction; type Context = (); +} +unsafe impl CoreOwnedArrayProvider for Function { unsafe fn free(raw: *mut *mut BNFunction, count: usize, _context: &()) { BNFreeFunctionList(raw, count); } } -unsafe impl<'a> CoreOwnedArrayWrapper<'a> for Function { +unsafe impl<'a> CoreArrayWrapper<'a> for Function { type Wrapped = Guard<'a, Function>; unsafe fn wrap_raw(raw: &'a *mut BNFunction, context: &'a ()) -> Guard<'a, Function> { |
