Merge pull request #199 from adamcrume/master, r=hauleth
Implement Default for Complex
This commit is contained in:
commit
a7ac5e4299
|
@ -29,7 +29,7 @@ use traits::{Zero, One, Num, Float};
|
||||||
// probably doesn't map to C's _Complex correctly.
|
// probably doesn't map to C's _Complex correctly.
|
||||||
|
|
||||||
/// A complex number in Cartesian form.
|
/// A complex number in Cartesian form.
|
||||||
#[derive(PartialEq, Copy, Clone, Hash, Debug)]
|
#[derive(PartialEq, Copy, Clone, Hash, Debug, Default)]
|
||||||
#[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
|
#[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
|
||||||
pub struct Complex<T> {
|
pub struct Complex<T> {
|
||||||
/// Real portion of the complex number
|
/// Real portion of the complex number
|
||||||
|
|
Loading…
Reference in New Issue