alexcrichton / alexcrichton/curl-rust

Missing function `Easy::into_inner`

Đang mở
#586 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
1.1k
Fork
258
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I can move (in the sense of transferring ownership) a handler into an Easy (via `Easy::new`), and the Easy into a Multi (via `Multi::add`).

I can later move the Easy out of the Multi (via `Multi::remove`). But, I can't move the handler out of the Easy, I can only get a reference via `get_ref` or `get_mut`. It would be useful to be able to do that. I believe the function would be called `into_inner` by convention, like in `RefCell::into_inner`.

This applies to Easy2 as well. Would you accept a PR for adding the function in both places or is there a reason it doesn't exist?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.