Hide impl_tryfrom_str
This macro is a helper for `impl_parse_str` 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
2675cd1040
commit
706c7c9f5f
|
@ -1195,7 +1195,6 @@ pub fn u64::from(value: bitcoin_units::weight::Weight) -> Self
|
|||
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 mod bitcoin_units
|
||||
pub mod bitcoin_units::amount
|
||||
pub mod bitcoin_units::amount::serde
|
||||
|
|
|
@ -1066,7 +1066,6 @@ pub fn u64::from(value: bitcoin_units::weight::Weight) -> Self
|
|||
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 mod bitcoin_units
|
||||
pub mod bitcoin_units::amount
|
||||
pub mod bitcoin_units::block
|
||||
|
|
|
@ -1020,7 +1020,6 @@ pub fn u64::from(value: bitcoin_units::weight::Weight) -> Self
|
|||
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 mod bitcoin_units
|
||||
pub mod bitcoin_units::amount
|
||||
pub mod bitcoin_units::block
|
||||
|
|
|
@ -151,6 +151,7 @@ macro_rules! impl_parse_str {
|
|||
|
||||
/// Implements `TryFrom<$from> for $to`.
|
||||
#[macro_export]
|
||||
#[doc(hidden)] // Helper macro called by `impl_parse_str`.
|
||||
macro_rules! impl_tryfrom_str {
|
||||
($($from:ty, $to:ty, $err:ty, $inner_fn:expr);*) => {
|
||||
$(
|
||||
|
|
Loading…
Reference in New Issue