Skip to content

Commit 6fe0371

Browse files
committed
Add docs for FloatingPoint trait members
1 parent d0ad33d commit 6fe0371

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util.rs

+2
Original file line numberDiff line numberDiff line change
@@ -610,9 +610,11 @@ impl Zero for Complex32 {
610610

611611
///Trait qualifier to accept either real or complex typed data
612612
pub trait FloatingPoint {
613+
/// Use to check if trait implementor is real number
613614
fn is_real() -> bool {
614615
false
615616
}
617+
/// Use to check if trait implementor is complex number
616618
fn is_complex() -> bool {
617619
false
618620
}

0 commit comments

Comments
 (0)