make Cmplx fields public

This commit is contained in:
Ted Horst 2014-04-01 12:58:13 -05:00
parent b8ef9fd9c9
commit a8308fbb76
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@ use std::num::{Zero,One,ToStrRadix};
#[deriving(Eq,Clone)]
pub struct Cmplx<T> {
/// Real portion of the complex number
re: T,
pub re: T,
/// Imaginary portion of the complex number
im: T
pub im: T
}
pub type Complex32 = Cmplx<f32>;