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...
Fike asked 19/8, 2021 at 1:39

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( ...
Gibeon asked 11/11, 2020 at 8:33

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...
Superstratum asked 19/4, 2018 at 6:7

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 ...
Queensland asked 16/4, 2018 at 14:46
1

© 2022 - 2024 — McMap. All rights reserved.