2348449d2a
`std::io::Write` is implemented for all `&mut std::io::Write`. This makes it easy to have APIs that mix and match owned `Write`s with mutable references to `Write`s. However, in the next commit we add our own `Write` trait which we intend to implement for all `std::io::Write`. Sadly, this is mutually exclusive with a blanket implementation on our own `&mut Write`, as that would conflict with an `std::io::Write` blanket impl. Thus, in order to use the `Write for all &mut Write` blanket impl in rust-bitcoin, we'd have to bound all `Write`s by `std::io::Write`, as we're unable to provide a blanket `Write for &mut Write` impl. Here we stop relying on that blanket impl in order to introduce the new trait in the next commit. |
||
---|---|---|
.. | ||
contrib | ||
embedded | ||
examples | ||
src | ||
tests | ||
CHANGELOG.md | ||
Cargo.toml | ||
build.rs |