diff --git a/api/units/all-features.txt b/api/units/all-features.txt index 66adfa66c..9123a7812 100644 --- a/api/units/all-features.txt +++ b/api/units/all-features.txt @@ -687,7 +687,7 @@ pub const fn bitcoin_units::Amount::checked_div_by_weight_floor(self, rhs: bitco pub const fn bitcoin_units::Amount::checked_mul(self, rhs: u64) -> core::option::Option pub const fn bitcoin_units::Amount::checked_rem(self, rhs: u64) -> core::option::Option pub const fn bitcoin_units::Amount::checked_sub(self, rhs: bitcoin_units::Amount) -> core::option::Option -pub const fn bitcoin_units::Amount::from_int_btc_const(btc: u64) -> bitcoin_units::Amount +pub const fn bitcoin_units::Amount::from_int_btc_const(whole_bitcoin: u32) -> bitcoin_units::Amount pub const fn bitcoin_units::Amount::from_sat(satoshi: u64) -> bitcoin_units::Amount pub const fn bitcoin_units::Amount::to_sat(self) -> u64 pub const fn bitcoin_units::SignedAmount::checked_abs(self) -> core::option::Option @@ -696,7 +696,7 @@ pub const fn bitcoin_units::SignedAmount::checked_div(self, rhs: i64) -> core::o pub const fn bitcoin_units::SignedAmount::checked_mul(self, rhs: i64) -> core::option::Option pub const fn bitcoin_units::SignedAmount::checked_rem(self, rhs: i64) -> core::option::Option pub const fn bitcoin_units::SignedAmount::checked_sub(self, rhs: bitcoin_units::SignedAmount) -> core::option::Option -pub const fn bitcoin_units::SignedAmount::from_int_btc_const(btc: i64) -> bitcoin_units::SignedAmount +pub const fn bitcoin_units::SignedAmount::from_int_btc_const(whole_bitcoin: i64) -> bitcoin_units::SignedAmount pub const fn bitcoin_units::SignedAmount::from_sat(satoshi: i64) -> bitcoin_units::SignedAmount pub const fn bitcoin_units::SignedAmount::to_sat(self) -> i64 pub const fn bitcoin_units::block::BlockHeight::from_u32(inner: u32) -> Self @@ -766,7 +766,7 @@ pub fn bitcoin_units::Amount::eq(&self, other: &bitcoin_units::Amount) -> bool pub fn bitcoin_units::Amount::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin_units::Amount::from_btc(btc: f64) -> core::result::Result pub fn bitcoin_units::Amount::from_float_in(value: f64, denom: bitcoin_units::amount::Denomination) -> core::result::Result -pub fn bitcoin_units::Amount::from_int_btc(btc: u64) -> core::result::Result +pub fn bitcoin_units::Amount::from_int_btc>(whole_bitcoin: T) -> core::result::Result pub fn bitcoin_units::Amount::from_str(s: &str) -> core::result::Result pub fn bitcoin_units::Amount::from_str_in(s: &str, denom: bitcoin_units::amount::Denomination) -> core::result::Result pub fn bitcoin_units::Amount::from_str_with_denomination(s: &str) -> core::result::Result @@ -813,7 +813,7 @@ pub fn bitcoin_units::SignedAmount::eq(&self, other: &bitcoin_units::SignedAmoun pub fn bitcoin_units::SignedAmount::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin_units::SignedAmount::from_btc(btc: f64) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_float_in(value: f64, denom: bitcoin_units::amount::Denomination) -> core::result::Result -pub fn bitcoin_units::SignedAmount::from_int_btc(btc: i64) -> core::result::Result +pub fn bitcoin_units::SignedAmount::from_int_btc>(whole_bitcoin: T) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_str(s: &str) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_str_in(s: &str, denom: bitcoin_units::amount::Denomination) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_str_with_denomination(s: &str) -> core::result::Result diff --git a/api/units/alloc-only.txt b/api/units/alloc-only.txt index 79fbedd91..18fced9e3 100644 --- a/api/units/alloc-only.txt +++ b/api/units/alloc-only.txt @@ -645,7 +645,7 @@ pub const fn bitcoin_units::Amount::checked_div_by_weight_floor(self, rhs: bitco pub const fn bitcoin_units::Amount::checked_mul(self, rhs: u64) -> core::option::Option pub const fn bitcoin_units::Amount::checked_rem(self, rhs: u64) -> core::option::Option pub const fn bitcoin_units::Amount::checked_sub(self, rhs: bitcoin_units::Amount) -> core::option::Option -pub const fn bitcoin_units::Amount::from_int_btc_const(btc: u64) -> bitcoin_units::Amount +pub const fn bitcoin_units::Amount::from_int_btc_const(whole_bitcoin: u32) -> bitcoin_units::Amount pub const fn bitcoin_units::Amount::from_sat(satoshi: u64) -> bitcoin_units::Amount pub const fn bitcoin_units::Amount::to_sat(self) -> u64 pub const fn bitcoin_units::SignedAmount::checked_abs(self) -> core::option::Option @@ -654,7 +654,7 @@ pub const fn bitcoin_units::SignedAmount::checked_div(self, rhs: i64) -> core::o pub const fn bitcoin_units::SignedAmount::checked_mul(self, rhs: i64) -> core::option::Option pub const fn bitcoin_units::SignedAmount::checked_rem(self, rhs: i64) -> core::option::Option pub const fn bitcoin_units::SignedAmount::checked_sub(self, rhs: bitcoin_units::SignedAmount) -> core::option::Option -pub const fn bitcoin_units::SignedAmount::from_int_btc_const(btc: i64) -> bitcoin_units::SignedAmount +pub const fn bitcoin_units::SignedAmount::from_int_btc_const(whole_bitcoin: i64) -> bitcoin_units::SignedAmount pub const fn bitcoin_units::SignedAmount::from_sat(satoshi: i64) -> bitcoin_units::SignedAmount pub const fn bitcoin_units::SignedAmount::to_sat(self) -> i64 pub const fn bitcoin_units::block::BlockHeight::from_u32(inner: u32) -> Self @@ -720,7 +720,7 @@ pub fn bitcoin_units::Amount::eq(&self, other: &bitcoin_units::Amount) -> bool pub fn bitcoin_units::Amount::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin_units::Amount::from_btc(btc: f64) -> core::result::Result pub fn bitcoin_units::Amount::from_float_in(value: f64, denom: bitcoin_units::amount::Denomination) -> core::result::Result -pub fn bitcoin_units::Amount::from_int_btc(btc: u64) -> core::result::Result +pub fn bitcoin_units::Amount::from_int_btc>(whole_bitcoin: T) -> core::result::Result pub fn bitcoin_units::Amount::from_str(s: &str) -> core::result::Result pub fn bitcoin_units::Amount::from_str_in(s: &str, denom: bitcoin_units::amount::Denomination) -> core::result::Result pub fn bitcoin_units::Amount::from_str_with_denomination(s: &str) -> core::result::Result @@ -756,7 +756,7 @@ pub fn bitcoin_units::SignedAmount::eq(&self, other: &bitcoin_units::SignedAmoun pub fn bitcoin_units::SignedAmount::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn bitcoin_units::SignedAmount::from_btc(btc: f64) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_float_in(value: f64, denom: bitcoin_units::amount::Denomination) -> core::result::Result -pub fn bitcoin_units::SignedAmount::from_int_btc(btc: i64) -> core::result::Result +pub fn bitcoin_units::SignedAmount::from_int_btc>(whole_bitcoin: T) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_str(s: &str) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_str_in(s: &str, denom: bitcoin_units::amount::Denomination) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_str_with_denomination(s: &str) -> core::result::Result diff --git a/api/units/no-features.txt b/api/units/no-features.txt index e4244c9d1..17d2679a2 100644 --- a/api/units/no-features.txt +++ b/api/units/no-features.txt @@ -627,7 +627,7 @@ pub const fn bitcoin_units::Amount::checked_div(self, rhs: u64) -> core::option: pub const fn bitcoin_units::Amount::checked_mul(self, rhs: u64) -> core::option::Option pub const fn bitcoin_units::Amount::checked_rem(self, rhs: u64) -> core::option::Option pub const fn bitcoin_units::Amount::checked_sub(self, rhs: bitcoin_units::Amount) -> core::option::Option -pub const fn bitcoin_units::Amount::from_int_btc_const(btc: u64) -> bitcoin_units::Amount +pub const fn bitcoin_units::Amount::from_int_btc_const(whole_bitcoin: u32) -> bitcoin_units::Amount pub const fn bitcoin_units::Amount::from_sat(satoshi: u64) -> bitcoin_units::Amount pub const fn bitcoin_units::Amount::to_sat(self) -> u64 pub const fn bitcoin_units::SignedAmount::checked_abs(self) -> core::option::Option @@ -636,7 +636,7 @@ pub const fn bitcoin_units::SignedAmount::checked_div(self, rhs: i64) -> core::o pub const fn bitcoin_units::SignedAmount::checked_mul(self, rhs: i64) -> core::option::Option pub const fn bitcoin_units::SignedAmount::checked_rem(self, rhs: i64) -> core::option::Option pub const fn bitcoin_units::SignedAmount::checked_sub(self, rhs: bitcoin_units::SignedAmount) -> core::option::Option -pub const fn bitcoin_units::SignedAmount::from_int_btc_const(btc: i64) -> bitcoin_units::SignedAmount +pub const fn bitcoin_units::SignedAmount::from_int_btc_const(whole_bitcoin: i64) -> bitcoin_units::SignedAmount pub const fn bitcoin_units::SignedAmount::from_sat(satoshi: i64) -> bitcoin_units::SignedAmount pub const fn bitcoin_units::SignedAmount::to_sat(self) -> i64 pub const fn bitcoin_units::block::BlockHeight::from_u32(inner: u32) -> Self @@ -700,7 +700,7 @@ pub fn bitcoin_units::Amount::div(self, rhs: u64) -> Self::Output pub fn bitcoin_units::Amount::div_assign(&mut self, rhs: u64) pub fn bitcoin_units::Amount::eq(&self, other: &bitcoin_units::Amount) -> bool pub fn bitcoin_units::Amount::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result -pub fn bitcoin_units::Amount::from_int_btc(btc: u64) -> core::result::Result +pub fn bitcoin_units::Amount::from_int_btc>(whole_bitcoin: T) -> core::result::Result pub fn bitcoin_units::Amount::from_str(s: &str) -> core::result::Result pub fn bitcoin_units::Amount::from_str_in(s: &str, denom: bitcoin_units::amount::Denomination) -> core::result::Result pub fn bitcoin_units::Amount::from_str_with_denomination(s: &str) -> core::result::Result @@ -730,7 +730,7 @@ pub fn bitcoin_units::SignedAmount::div(self, rhs: i64) -> Self::Output pub fn bitcoin_units::SignedAmount::div_assign(&mut self, rhs: i64) pub fn bitcoin_units::SignedAmount::eq(&self, other: &bitcoin_units::SignedAmount) -> bool pub fn bitcoin_units::SignedAmount::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result -pub fn bitcoin_units::SignedAmount::from_int_btc(btc: i64) -> core::result::Result +pub fn bitcoin_units::SignedAmount::from_int_btc>(whole_bitcoin: T) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_str(s: &str) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_str_in(s: &str, denom: bitcoin_units::amount::Denomination) -> core::result::Result pub fn bitcoin_units::SignedAmount::from_str_with_denomination(s: &str) -> core::result::Result