Skip to main content

IntoRational

Trait IntoRational 

Source
pub trait IntoRational {
    // Required method
    fn into_rational(self) -> Rational;
}
Expand description

Conversion into a Rational, so the builder API accepts plain integers and fractions.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoRational for (i64, i64)

(numerator, denominator). Panics if the denominator is zero.

Source§

impl IntoRational for i32

Source§

impl IntoRational for i64

Implementors§