fn add_ints(n1: i32, n2: i32) -> Value {
    match n1.checked_add(n2) {
        Some(n3) => {
            Value::Int(n3)
        }
        None => {
            let n1_bigint = BigInt::from_i32(n1).unwrap();
            Value::BigInt(n1_bigint + n2)
        }
    }
}
/// Add two integers together and return the result value.  Promote to
/// bigint if the value cannot be stored in an i32.
Add two integers together and return the result value.  Promote to
bigint if the value cannot be stored in an i32.
Add two integers together and return the result value . Promote to bigint if the value cannot be stored in an i32 .
fn add_ints(n1: i32, n2: i32) -> Value {
    match n1.checked_add(n2) {
        Some(n3) => {
            Value::Int(n3)
        }
        None => {
            let n1_bigint = BigInt::from_i32(n1).unwrap();
            Value::BigInt(n1_bigint + n2)
        }
    }
}
fn add_ints ( n1 : i32 , n2 : i32 ) -> Value { match n1 . checked_add ( n2 ) { Some ( n3 ) => { Value :: Int ( n3 ) } None => { let n1_bigint = BigInt :: from_i32 ( n1 ) . unwrap ( ) ; Value :: BigInt ( n1_bigint + n2 ) } } }
Add two integers together and return the result value.
Add two integers together and return the result value .
n1
i32
n2
i32