Enhance Witness struct element access methods: - Rename `nth()` to `get()` for clearer slice-like element retrieval - Introduce `get_back()` method for flexible reverse indexing - Remove redundant `second_to_last()` and `third_to_last()` methods - Add `#[track_caller]` to index implementation for better error tracking - Update all references to use new method names - Improve documentation with usage examples The changes provide a more intuitive and consistent approach to accessing witness elements. |
||
---|---|---|
.. | ||
contrib | ||
src | ||
CHANGELOG.md | ||
Cargo.toml | ||
README.md |
README.md
Rust Bitcoin - primitive types.
This crate provides primitive data types that are used throughout the
rust-bitcoin
ecosystem.
Semver compliance
Functions marked as unstable (e.g. foo__unstable
) are not guaranteed to uphold semver compliance.
They are primarily provided to support rust-bitcoin
.
Minimum Supported Rust Version (MSRV)
This library should always compile with any combination of features on Rust 1.63.0.
Licensing
The code in this project is licensed under the Creative Commons CC0 1.0 Universal license. We use the SPDX license list and SPDX IDs.