Files
rust/library/std/src
Joshua Nelson ed1e3512dc impl<T: AsRawFd> for {Arc,Box}<T>
This allows implementing traits that require a raw FD on Arc and Box.

Previously, you'd have to add the function to the trait itself:

```rust
trait MyTrait {
    fn as_raw_fd(&self) -> RawFd;
}

impl<T: MyTrait> MyTrait for Arc<T> {
    fn as_raw_fd(&self) -> RawFd {
        (**self).as_raw_fd()
    }
}
```
2022-06-21 23:03:55 -05:00
..
2021-10-25 22:44:41 -05:00
2022-04-07 08:51:59 +01:00
2022-06-21 23:03:55 -05:00
2022-05-27 07:36:17 -04:00
2022-03-23 05:33:44 +00:00
2022-06-07 15:15:19 +02:00
2022-04-14 01:33:13 -04:00
2022-05-24 19:41:40 -07:00
2022-05-29 13:14:59 +04:00
2022-06-01 20:32:33 -04:00
2022-05-08 22:15:26 +08:00
2022-05-23 00:02:09 +02:00