Hide impl_tryfrom_str_from_int_infallible
This macro is a helper for `impl_parse_str_from_int_infallible` used to reduce code duplication. It does not, and should not, need to be part of the public API - hide it.
This commit is contained in:
parent
fc9e40ab1a
commit
4cc7aae6b9
|
@ -1196,7 +1196,6 @@ pub fn u64::mul(self, rhs: bitcoin_units::weight::Weight) -> Self::Output
|
|||
pub macro bitcoin_units::impl_parse_str!
|
||||
pub macro bitcoin_units::impl_parse_str_from_int_infallible!
|
||||
pub macro bitcoin_units::impl_tryfrom_str!
|
||||
pub macro bitcoin_units::impl_tryfrom_str_from_int_infallible!
|
||||
pub mod bitcoin_units
|
||||
pub mod bitcoin_units::amount
|
||||
pub mod bitcoin_units::amount::serde
|
||||
|
|
|
@ -1067,7 +1067,6 @@ pub fn u64::mul(self, rhs: bitcoin_units::weight::Weight) -> Self::Output
|
|||
pub macro bitcoin_units::impl_parse_str!
|
||||
pub macro bitcoin_units::impl_parse_str_from_int_infallible!
|
||||
pub macro bitcoin_units::impl_tryfrom_str!
|
||||
pub macro bitcoin_units::impl_tryfrom_str_from_int_infallible!
|
||||
pub mod bitcoin_units
|
||||
pub mod bitcoin_units::amount
|
||||
pub mod bitcoin_units::block
|
||||
|
|
|
@ -1021,7 +1021,6 @@ pub fn u64::mul(self, rhs: bitcoin_units::weight::Weight) -> Self::Output
|
|||
pub macro bitcoin_units::impl_parse_str!
|
||||
pub macro bitcoin_units::impl_parse_str_from_int_infallible!
|
||||
pub macro bitcoin_units::impl_tryfrom_str!
|
||||
pub macro bitcoin_units::impl_tryfrom_str_from_int_infallible!
|
||||
pub mod bitcoin_units
|
||||
pub mod bitcoin_units::amount
|
||||
pub mod bitcoin_units::block
|
||||
|
|
|
@ -116,6 +116,7 @@ macro_rules! impl_parse_str_from_int_infallible {
|
|||
/// Implements `TryFrom<$from> for $to` using `parse::int`, mapping the output using infallible
|
||||
/// conversion function `fn`.
|
||||
#[macro_export]
|
||||
#[doc(hidden)] // Helper macro called by `impl_parse_str_from_int_infallible`.
|
||||
macro_rules! impl_tryfrom_str_from_int_infallible {
|
||||
($($from:ty, $to:ident, $inner:ident, $fn:ident);*) => {
|
||||
$(
|
||||
|
|
Loading…
Reference in New Issue