Skip to content

Commit

Permalink
Add docs for FloatingPoint trait members
Browse files Browse the repository at this point in the history
  • Loading branch information
9prady9 committed Jul 25, 2019
1 parent d0ad33d commit 6fe0371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6fe0371

Please sign in to comment.