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.
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.