rust-bitcoin-unsafe-fast/src
Andrew Poelstra f54fe69c8d
Merge rust-bitcoin/rust-bitcoin#1137: Impl string conversion traits for `CommandString`
405be52f5c Impl string conversion traits for `CommandString` (Martin Habovstiak)

Pull request description:

  After MSRV bump `try_from` usually refers to `TryFrom` method but
  `CommandString` used inherent one making it confusing and non-idiomatic.

  This implements `FromStr` and `TryFrom<{stringly type}>` for
  `CommandString` and deprecates the inherent method in favor of those.
  To keep the code using `&'static str` efficient it provides
  `try_from_static` inherent method that only converts from
  `&'static str`.

  Closes #1135

ACKs for top commit:
  sanket1729:
    utACK 405be52f5c
  tcharding:
    ACK 405be52f5c

Tree-SHA512: 754fc960a4bc5c096cccf47b85a620e33fcf863f3c57ea113eae91cd34006168113dd1efc47231e79e6e237e2fc412890cc9e8a72d4cfc633bfebbecdc4610e6
2022-07-29 14:03:00 +00:00
..
blockdata Implement string parsing for `Sequence` 2022-07-27 20:46:37 +02:00
consensus BIP152: Add basic Compact Block structures 2022-07-24 13:21:08 +02:00
network Impl string conversion traits for `CommandString` 2022-07-28 15:24:49 +02:00
util Merge rust-bitcoin/rust-bitcoin#1146: Remove needless allocation from BIP-158 encoding 2022-07-29 13:29:34 +00:00
error.rs Extend `ParseIntError` to carry more context 2022-07-27 18:51:53 +02:00
hash_types.rs Enable formatter for "src" 2022-07-19 13:43:12 +10:00
internal_macros.rs Extend `ParseIntError` to carry more context 2022-07-27 18:51:53 +02:00
lib.rs Extend `ParseIntError` to carry more context 2022-07-27 18:51:53 +02:00
parse.rs Implement string parsing for `Sequence` 2022-07-27 20:46:37 +02:00
policy.rs Enable formatter for "src" 2022-07-19 13:43:12 +10:00
serde_utils.rs Remove extern crate bitcoin_hashes 2022-07-20 11:23:59 +10:00
test_macros.rs Introduce SPDX license identifiers 2022-06-29 14:12:02 +10:00