Commit 21a85a1
committed
rust: add
The implementation is straightforward: converting to `void *` and
borrowing are just pointer casts.
This is used by the GPIO subsystem where some context data is controlled
by the C side, so it is necessarily a raw pointer. (This is hidden from
driver writers though.)
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>PointerWrapper implementation for *mut T.1 parent 3cc55c1 commit 21a85a1
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
131 | 147 | | |
132 | 148 | | |
133 | 149 | | |
| |||
0 commit comments