File tree 2 files changed +15
-9
lines changed
2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,16 @@ println!("{:#?}", plus_one);
29
29
```
30
30
31
31
This library aims to work in as simple and safe a way as possible. On stable
32
- Rust the returned closures implement [ ` traits::FnOnce ` ] , [ ` traits::FnMut ` ] and
33
- [ ` traits::Fn ` ] , and on nightly Rust [ ` std::ops::FnOnce ` ] , [ ` std::ops::FnMut ` ]
34
- and [ ` std::ops::Fn ` ] are implemented as well using the ` unboxed_closures ` and
35
- ` fn_traits ` features (rust issue [ #29625 ] ( https://github.com/rust-lang/rust/issues/29625 ) ).
32
+ Rust the wrapped closures implement
33
+ [ ` traits::FnOnce ` ] ( https://docs.rs/serde_closure/0.3/serde_closure/traits/trait.FnOnce.html ) ,
34
+ [ ` traits::FnMut ` ] ( https://docs.rs/serde_closure/0.3/serde_closure/traits/trait.FnMut.html )
35
+ and [ ` traits::Fn ` ] ( https://docs.rs/serde_closure/0.3/serde_closure/traits/trait.Fn.html ) ,
36
+ and when the "nightly" feature is passed
37
+ [ ` std::ops::FnOnce ` ] ( https://doc.rust-lang.org/std/ops/trait.FnOnce.html ) ,
38
+ [ ` std::ops::FnMut ` ] ( https://doc.rust-lang.org/std/ops/trait.FnMut.html ) and
39
+ [ ` std::ops::Fn ` ] ( https://doc.rust-lang.org/std/ops/trait.Fn.html ) are
40
+ implemented as well using the ` unboxed_closures ` and ` fn_traits ` features (rust
41
+ issue [ #29625 ] ( https://github.com/rust-lang/rust/issues/29625 ) ).
36
42
37
43
* There are three macros,
38
44
[ ` FnOnce ` ] ( https://docs.rs/serde_closure/0.3/serde_closure/macro.FnOnce.html ) ,
Original file line number Diff line number Diff line change 25
25
//! ```
26
26
//!
27
27
//! This library aims to work in as simple and safe a way as possible. On stable
28
- //! Rust the returned closures implement [`traits::FnOnce`], [`traits::FnMut`]
29
- //! and [`traits::Fn`], and on nightly Rust [`std::ops::FnOnce`],
30
- //! [`std::ops::FnMut`] and [`std::ops::Fn`] are implemented as well using the
31
- //! `unboxed_closures` and `fn_traits` features (rust issue
32
- //! [#29625](https://github.com/rust-lang/rust/issues/29625)).
28
+ //! Rust the wrapped closures implement [`traits::FnOnce`], [`traits::FnMut`]
29
+ //! and [`traits::Fn`], and when the " nightly" feature is passed
30
+ //! [`std::ops::FnOnce`], [`std::ops:: FnMut`] and [`std::ops::Fn`] are
31
+ //! implemented as well using the `unboxed_closures` and `fn_traits` features
32
+ //! (rust issue [#29625](https://github.com/rust-lang/rust/issues/29625)).
33
33
//!
34
34
//! * There are three macros, [`FnOnce`](macro@FnOnce), [`FnMut`](macro@FnMut)
35
35
//! and [`Fn`](macro@Fn), corresponding to the three types of Rust closure.
You can’t perform that action at this time.
0 commit comments