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§
Sourcefn neg_infinity() -> Self
fn neg_infinity() -> Self
Returns the type’s positive infinity value.
Sourcefn pos_infinity() -> Self
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.