Neat Rust Tricks: Passing Closures to C
blog.seantheprogrammer.com
Neat Rust Tricks: Passing Closures to C
1–10 of 69 posts
Re: Neat Rust Tricks: Passing Closures to C
#2Maybe I just overcomplicate things ;-)
Re: Neat Rust Tricks: Passing Closures to C
#3Re: Neat Rust Tricks: Passing Closures to C
#4How does this relate to nested functions in C? (And resulting “infectious executable stacks”?) https://nullprogram.com/blog/2019/11/15/
Re: Neat Rust Tricks: Passing Closures to C
#5How does this relate to nested functions in C? (And resulting “infectious executable stacks”?) https://nullprogram.com/blog/2019/11/15/
Re: Neat Rust Tricks: Passing Closures to C
#6How does this relate to nested functions in C? (And resulting “infectious executable stacks”?) https://nullprogram.com/blog/2019/11/15/
Re: Neat Rust Tricks: Passing Closures to C
#7How does this relate to nested functions in C? (And resulting “infectious executable stacks”?) https://nullprogram.com/blog/2019/11/15/
Re: Neat Rust Tricks: Passing Closures to C
#8How does this relate to nested functions in C? (And resulting “infectious executable stacks”?) https://nullprogram.com/blog/2019/11/15/
Re: Neat Rust Tricks: Passing Closures to C
#9How does this relate to nested functions in C? (And resulting “infectious executable stacks”?) https://nullprogram.com/blog/2019/11/15/
The problems there don't apply I believe because Rust closures don't require an executable stack.
Re: Neat Rust Tricks: Passing Closures to C
#10Earlier quoted context omitted.
The problems there don't apply I believe because Rust closures don't require an executable stack.
That's correct - a Rust closure generally [1] can't be converted to a function pointer as it requires both code and state. [1] https://github.com/rust-lang/rust/issues/39817