/// Convert to a signed amount.
Convert to a signed amount.
Convert to a signed amount .
pub fn to_signed(self) -> Result<SignedAmount, ParseAmountError> {
        if self.as_sat() > SignedAmount::max_value().as_sat() as u64 {
            Err(ParseAmountError::TooBig)
        } else {
            Ok(SignedAmount::from_sat(self.as_sat() as i64))
        }
    }
pub fn to_signed ( self ) -> Result < SignedAmount , ParseAmountError > { if self . as_sat ( ) > SignedAmount :: max_value ( ) . as_sat ( ) as u64 { Err ( ParseAmountError :: TooBig ) } else { Ok ( SignedAmount :: from_sat ( self . as_sat ( ) as i64 ) ) } }
Convert to a signed amount.
Convert to a signed amount .
self