make Cmplx fields public
This commit is contained in:
parent
b8ef9fd9c9
commit
a8308fbb76
1 changed files with 2 additions and 2 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Reference in a new issue