Re-export Zero and One via structure module
This commit is contained in:
parent
e1de5e9330
commit
54adacc2a8
9 changed files with 8 additions and 13 deletions
|
@ -21,10 +21,10 @@ use std::ops::*;
|
|||
|
||||
use rand::{Rand, Rng};
|
||||
use rand::distributions::range::SampleRange;
|
||||
use num_traits::{Float, Zero};
|
||||
use num_traits::Float;
|
||||
use num_traits::cast;
|
||||
|
||||
use structure::Angle;
|
||||
use structure::*;
|
||||
|
||||
use approx::ApproxEq;
|
||||
use num::BaseFloat;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
// limitations under the License.
|
||||
|
||||
use rand::{Rand, Rng};
|
||||
use num_traits::{cast, Zero};
|
||||
use num_traits::cast;
|
||||
|
||||
use structure::*;
|
||||
|
||||
|
|
|
@ -72,8 +72,6 @@ pub use transform::*;
|
|||
|
||||
pub use projection::*;
|
||||
|
||||
pub use num_traits::{One, Zero};
|
||||
|
||||
// Modules
|
||||
|
||||
pub mod conv;
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
// limitations under the License.
|
||||
|
||||
use rand::{Rand, Rng};
|
||||
use num_traits::{Zero, One};
|
||||
use num_traits::cast;
|
||||
use std::fmt;
|
||||
use std::mem;
|
||||
|
|
|
@ -21,8 +21,6 @@ use std::fmt;
|
|||
use std::mem;
|
||||
use std::ops::*;
|
||||
|
||||
use num_traits::{One, Zero};
|
||||
|
||||
use structure::*;
|
||||
|
||||
use approx::ApproxEq;
|
||||
|
|
|
@ -17,7 +17,7 @@ use std::mem;
|
|||
use std::ops::*;
|
||||
|
||||
use rand::{Rand, Rng};
|
||||
use num_traits::{Float, One, Zero};
|
||||
use num_traits::Float;
|
||||
use num_traits::cast;
|
||||
|
||||
use structure::*;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
//! Generic algebraic structures
|
||||
|
||||
use num_traits::{cast, Float, One, Zero};
|
||||
use num_traits::{cast, Float};
|
||||
use std::cmp;
|
||||
use std::ops::*;
|
||||
|
||||
|
@ -24,6 +24,8 @@ use approx::ApproxEq;
|
|||
use angle::Rad;
|
||||
use num::{BaseNum, BaseFloat, PartialOrd};
|
||||
|
||||
pub use num_traits::{One, Zero};
|
||||
|
||||
/// An array containing elements of type `Element`
|
||||
pub trait Array where
|
||||
// FIXME: Ugly type signatures - blocked by rust-lang/rust#24092
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
|
||||
use std::fmt;
|
||||
|
||||
use num_traits::{Zero, One};
|
||||
|
||||
use structure::*;
|
||||
|
||||
use approx::ApproxEq;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
// limitations under the License.
|
||||
|
||||
use rand::{Rand, Rng};
|
||||
use num_traits::{NumCast, Zero, One};
|
||||
use num_traits::NumCast;
|
||||
use std::fmt;
|
||||
use std::mem;
|
||||
use std::ops::*;
|
||||
|
|
Loading…
Reference in a new issue