On 05/04/2014 11:39, Vladimir Pouzanov wrote:
The problem is that &[extern unsafe fn()] results in 8 bytes, pointer to the actual array and its size. Is there any way I can get a plain C-style array in rust?
If the size is known as compile-time you can use: static table: [extern unsafe fn(), ..2] = [foo, bar]; -- Simon Sapin _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev