Messages in this thread | | | Date | Mon, 21 Aug 2023 11:24:57 +0000 | Subject | Re: [PATCH v4 12/13] rust: init: add `{pin_}chain` functions to `{Pin}Init<T, E>` | From | Alice Ryhl <> |
| |
Benno Lossin <benno.lossin@proton.me> writes: > The `{pin_}chain` functions extend an initializer: it not only > initializes the value, but also executes a closure taking a reference to > the initialized value. This allows to do something with a value directly > after initialization. > > Suggested-by: Asahi Lina <lina@asahilina.net> > Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com> > Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
| |