mirror of
https://github.com/torvalds/linux.git
synced 2026-08-06 23:43:54 +02:00
Remove the error from the blanket implementations `impl<T, E> Init<T, E>
for T` (and also for `PinInit`). Add implementations for `Result<T, E>`.
This allows one to easily construct (un)conditional failing
initializers. It also improves the compatibility with APIs that do not
use pin-init, because users can supply a `Result<T, E>` to a function
taking an `impl PinInit<T, E>`.
Suggested-by: Alice Ryhl <aliceryhl@google.com>
Link:
|
||
|---|---|---|
| .. | ||
| gen_disk.rs | ||
| operations.rs | ||
| raw_writer.rs | ||
| request.rs | ||
| tag_set.rs | ||