core::ops::Fn not available in no_std project

⚓ Rust    📅 2025-09-24    👤 surdeus    👁️ 8      

surdeus

Warning

This post was published 37 days ago. The information described in this article may have changed.

Hi,

I am working on an no_std library, and I want to use the Fn trait (or FnOnce/FnMut) of core::ops but the compiler can't find it.

It looks like there is the rust1 feature to activate but I can't find a way to activate it.

Is there a way to do it ? Is there a reason as for why I can't access it ?

4 posts - 3 participants

Read full topic

🏷️ Rust_feed