mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-15 09:14:30 +00:00
make Cmplx fields public
This commit is contained in:
parent
b8ef9fd9c9
commit
a8308fbb76
@ -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…
Reference in New Issue
Block a user