pub trait NumberSpace:
Debug
+ PartialEq
+ Clone {
// Required methods
fn is_complex(&self) -> bool;
fn to_complex(&mut self);
fn to_real(&mut self);
}Expand description
Number space (real or complex) information.
Required Methods§
fn is_complex(&self) -> bool
Sourcefn to_complex(&mut self)
fn to_complex(&mut self)
For implementations which track meta data at runtime this method may be implemented to transition between different states. For all other implementations they may leave this empty.
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.