Implementations of the From trait for converting a primitive integer to a Rational.
From
Rational
use malachite_q::Rational; assert_eq!(Rational::from(123u32), 123); assert_eq!(Rational::from(-123i32), -123);