pub trait Infinity {
// Required method
fn infinity() -> Self;
}Expand description
Trait defining class method infinity() : T that creates an instance of
the implementing type that is conceptually (or actually) infinity.
§Additional Implementations on Foreign Types
§Built-in Types
If the feature "implement-Infinity-for-built_ins"
is defined (as it is by "default"), then this is also implemented
for the following types:
Required Methods§
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.