/// Convert to an unsigned amount.
Convert to an unsigned amount.
Convert to an unsigned amount .
pub fn to_unsigned(self) -> Result<Amount, ParseAmountError> {
        if self.is_negative() {
            Err(ParseAmountError::Negative)
        } else {
            Ok(Amount::from_sat(self.as_sat() as u64))
        }
    }
pub fn to_unsigned ( self ) -> Result < Amount , ParseAmountError > { if self . is_negative ( ) { Err ( ParseAmountError :: Negative ) } else { Ok ( Amount :: from_sat ( self . as_sat ( ) as u64 ) ) } }
Convert to an unsigned amount.
Convert to an unsigned amount .
self