Re-export public functions, enums, and structs from units::parse in the bitcoin crate root

This commit is contained in:
Shing Him Ng 2024-06-26 12:46:31 -05:00
parent 9ba29b384e
commit 452a7cc091
1 changed files with 6 additions and 1 deletions

View File

@ -199,7 +199,12 @@ pub mod amount {
/// Unit parsing utilities. /// Unit parsing utilities.
pub mod parse { pub mod parse {
/// Re-export everything from the [`units::parse`] module. /// Re-export everything from the [`units::parse`] module.
pub use units::parse::ParseIntError; #[doc(inline)]
pub use units::parse::{
hex_check_unprefixed, hex_remove_prefix, hex_u128, hex_u128_unchecked, hex_u128_unprefixed,
hex_u32, hex_u32_unchecked, hex_u32_unprefixed, int, ContainsPrefixError,
MissingPrefixError, ParseIntError, PrefixedHexError, UnprefixedHexError,
};
} }
mod encode_impls { mod encode_impls {