Indeed, I would say a wrapper would be a good abstraction here. Even more so than in modern C++, ’naked’ raw pointers are in general (exceptions granted) distasteful for public APIs in Rust.
~Brendan On 14 Apr 2014, at 6:22 am, György Andrasek <[email protected]> wrote: > You could make a container struct: > > struct Dev { > ptr: *mut InternalDev > } > > and then impl your methods on that. > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
