We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0ad33d commit 6fe0371Copy full SHA for 6fe0371
src/util.rs
@@ -610,9 +610,11 @@ impl Zero for Complex32 {
610
611
///Trait qualifier to accept either real or complex typed data
612
pub trait FloatingPoint {
613
+ /// Use to check if trait implementor is real number
614
fn is_real() -> bool {
615
false
616
}
617
+ /// Use to check if trait implementor is complex number
618
fn is_complex() -> bool {
619
620
0 commit comments