Skip to main content

ToRationals

Trait ToRationals 

Source
pub trait ToRationals {
    type Rationals;

    // Required method
    fn to_rationals(&self) -> Self::Rationals;
}
Expand description

A value of integers held where the language holds rationals: an integer as the rational it equals, a list item by item, at any depth.

Required Associated Types§

Source

type Rationals

The same value with each integer a rational.

Required Methods§

Source

fn to_rationals(&self) -> Self::Rationals

Implementations on Foreign Types§

Source§

impl ToRationals for i64

Source§

impl<T: ToRationals> ToRationals for [T]

Source§

impl<T: ToRationals> ToRationals for Vec<T>

Implementors§