[go: up one dir, main page]

Trait conv::misc::SignedInfinity [] [src]

pub trait SignedInfinity {
    fn neg_infinity() -> Self;
    fn pos_infinity() -> Self;
}

This trait indicates that a type has positive and negative "infinity" values.

This is used by the errors::UnwrapOrInf extension trait.

Required Methods

fn neg_infinity() -> Self

Returns the type's positive infinity value.

fn pos_infinity() -> Self

Returns the type's negative infinity value.

Implementors