conv::misc

Trait SignedInfinity

Source
pub trait SignedInfinity {
    // Required methods
    fn neg_infinity() -> Self;
    fn pos_infinity() -> Self;
}
Expand description

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

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

Required Methods§

Source

fn neg_infinity() -> Self

Returns the type’s positive infinity value.

Source

fn pos_infinity() -> Self

Returns the type’s negative infinity value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SignedInfinity for f32

Source§

impl SignedInfinity for f64

Implementors§