rust-pin Questions
1
Solved
I'm writing a foreign function interface (ffi) to expose the API of a pre-existing C++ library to some new Rust code I am writing. I am using the Rust cxx module for this.
I am running into some pr...
1
Solved
I have C++ code that calls Rust code with data. It knows which object to send the data to. Here's an example of the Rust function that C++ calls back:
extern "C" fn on_open_vpn_receive(
...
2
There is a new Pin type in unstable Rust and the RFC is already merged. It is said to be kind of a game changer when it comes to passing references, but I am not sure how and when one should use it...
1
Solved
I'm trying to use the new Pin feature. After reading this blog post, I've started to write some code:
#![feature(pin, arbitrary_self_types)]
use std::mem::Pin;
pub struct Foo {
var: i32,
}
pub ...
1
© 2022 - 2024 — McMap. All rights reserved.