pub fn constrain<C2>(self) -> Result<ValueBalance<C2>, ValueBalanceError>
    where
        C2: Constraint,
    {
        Ok(ValueBalance::<C2> {
            transparent: self.transparent.constrain().map_err(Transparent)?,
            sprout: self.sprout.constrain().map_err(Sprout)?,
            sapling: self.sapling.constrain().map_err(Sapling)?,
            orchard: self.orchard.constrain().map_err(Orchard)?,
        })
    }
/// Convert this value balance to a different ValueBalance type,
/// if it satisfies the new constraint
Convert this value balance to a different ValueBalance type,
if it satisfies the new constraint
Convert this value balance to a different ValueBalance type if it satisfies the new constraint
pub fn constrain<C2>(self) -> Result<ValueBalance<C2>, ValueBalanceError>
    where
        C2: Constraint,
    {
        Ok(ValueBalance::<C2> {
            transparent: self.transparent.constrain().map_err(Transparent)?,
            sprout: self.sprout.constrain().map_err(Sprout)?,
            sapling: self.sapling.constrain().map_err(Sapling)?,
            orchard: self.orchard.constrain().map_err(Orchard)?,
        })
    }
pub fn constrain < C2 > ( self ) -> Result < ValueBalance < C2 > , ValueBalanceError > where C2 : Constraint , { Ok ( ValueBalance :: < C2 > { transparent : self . transparent . constrain ( ) . map_err ( Transparent ) ? , sprout : self . sprout . constrain ( ) . map_err ( Sprout ) ? , sapling : self . sapling . constrain ( ) . map_err ( Sapling ) ? , orchard : self . orchard . constrain ( ) . map_err ( Orchard ) ? , } ) }
Convert this value balance to a different ValueBalance type,
if it satisfies the new constraint
Convert this value balance to a different ValueBalance type if it satisfies the new constraint
self