diff options
| author | Rubens Brandao <git@rubens.io> | 2024-05-10 08:55:09 -0300 |
|---|---|---|
| committer | Kyle Martin <krm504@nyu.edu> | 2024-05-10 12:00:27 -0400 |
| commit | b2ec4cc4bb2e5535769928b561f1c1932a66dcc8 (patch) | |
| tree | 90425d537153f091dc9ba011e4053165ca2350f2 /rust/src/types.rs | |
| parent | ea7a22b16fc56c23af397dd690c6c839dfb3a8f1 (diff) | |
use the new public/private Array trait impl
Diffstat (limited to 'rust/src/types.rs')
| -rw-r--r-- | rust/src/types.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/rust/src/types.rs b/rust/src/types.rs index 750ca46c..8292db07 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -2094,17 +2094,13 @@ impl StructureMember { impl CoreArrayProvider for StructureMember { type Raw = BNStructureMember; type Context = (); + type Wrapped<'a> = Guard<'a, StructureMember>; } -unsafe impl CoreOwnedArrayProvider for StructureMember { +unsafe impl CoreArrayProviderInner for StructureMember { unsafe fn free(raw: *mut Self::Raw, count: usize, _context: &Self::Context) { BNFreeStructureMemberList(raw, count) } -} - -unsafe impl CoreArrayWrapper for StructureMember { - type Wrapped<'a> = Guard<'a, StructureMember>; - unsafe fn wrap_raw<'a>(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped<'a> { Guard::new(StructureMember::from_raw(*raw), &()) } |
