[][src]Struct mini_haskell::lexeme::Ratio

pub struct Ratio<T> { /* fields omitted */ }

Haskell Ratio.

Implementations

impl<I: Integer + for<'a> Div<&'a I, Output = I>> Ratio<I>[src]

pub fn new(numerator: impl Into<I>, denominator: impl Into<I>) -> Self[src]

Create a new Ratio.

Trait Implementations

impl<I: Integer> Add<Ratio<I>> for Ratio<I>[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: Clone> Clone for Ratio<T>[src]

impl<T: Debug> Debug for Ratio<T>[src]

impl<I: Display> Display for Ratio<I>[src]

impl<T: Eq> Eq for Ratio<T>[src]

impl<I: Integer> From<I> for Ratio<I>[src]

impl<T: PartialEq> PartialEq<Ratio<T>> for Ratio<T>[src]

impl<T> StructuralEq for Ratio<T>[src]

impl<T> StructuralPartialEq for Ratio<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Ratio<T> where
    T: RefUnwindSafe

impl<T> Send for Ratio<T> where
    T: Send

impl<T> Sync for Ratio<T> where
    T: Sync

impl<T> Unpin for Ratio<T> where
    T: Unpin

impl<T> UnwindSafe for Ratio<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.