Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
impl<T> Write for UniquePtr<T> where ... Pin<&a mut T> : Write
.
This commit implements forwarding of `Write` trait implementation from `UniquePtr<T>` to the pointee type. This is quite similar to how `Box<T>` also forwards - see https://doc.rust-lang.org/std/boxed/struct.Box.html#impl-Write-for-Box%3CW%3E This commit has quite similar, orphan-rule-related motivation as the earlier #1368 which covered the `Read` trait. For a more specific motivating example, please see http://review.skia.org/c/skia/+/923337/3/experimental/rust_png/ffi/FFI.rs#254
- Loading branch information