rust/compiler
bors 85b8450466 Auto merge of #116866 - slanterns:inspect-stabilize, r=BurntSushi
Stabilize `result_option_inspect`

This PR stabilizes `result_option_inspect`:

```rust
// core::option

impl Option<T> {
    pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self;
}

// core::result

impl Result<T, E> {
    pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self;
    pub fn inspect_err<F: FnOnce(&E)>(self, f: F) -> Self;
}
```

<br>

Tracking issue: https://github.com/rust-lang/rust/issues/91345.
Implementation PR: https://github.com/rust-lang/rust/pull/91346.

Closes https://github.com/rust-lang/rust/issues/91345.
2023-11-13 19:46:18 +00:00
..
2023-11-13 13:15:55 +08:00
2023-11-08 14:39:59 +11:00
2023-11-06 13:42:20 +00:00
2023-11-13 14:13:54 +00:00
2023-11-13 14:13:54 +00:00
2023-11-13 14:13:54 +00:00
2023-11-13 14:13:54 +00:00
2023-11-13 14:13:54 +00:00
2023-11-13 14:13:54 +00:00