From 6fe03718e1872a7605e8d8af56e6d480a863c2c2 Mon Sep 17 00:00:00 2001 From: pradeep Date: Thu, 25 Jul 2019 12:50:38 +0530 Subject: [PATCH] Add docs for FloatingPoint trait members --- src/util.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util.rs b/src/util.rs index 9a9766126..bfb986fd1 100644 --- a/src/util.rs +++ b/src/util.rs @@ -610,9 +610,11 @@ impl Zero for Complex32 { ///Trait qualifier to accept either real or complex typed data pub trait FloatingPoint { + /// Use to check if trait implementor is real number fn is_real() -> bool { false } + /// Use to check if trait implementor is complex number fn is_complex() -> bool { false }