Make the `traits` module private.
Use `vec::Whatever` or `mat::Whatever` instead of `traits::whatever::Whatever`.
This commit is contained in:
parent
1b31304a9e
commit
a5a616e05e
|
@ -37,37 +37,29 @@ pub mod adaptors
|
|||
|
||||
pub mod types;
|
||||
|
||||
// pub mod num
|
||||
// {
|
||||
// pub use traits::dim::*;
|
||||
// pub use traits::homogeneous::*;
|
||||
// pub use traits::ring::*;
|
||||
// pub use traits::division_ring::*;
|
||||
// }
|
||||
|
||||
// FIXME: it would be better to hide all those from the outside!
|
||||
pub mod traits
|
||||
mod traits
|
||||
{
|
||||
pub mod vector;
|
||||
pub mod sample;
|
||||
pub mod indexable;
|
||||
pub mod column;
|
||||
pub mod row;
|
||||
pub mod iterable;
|
||||
pub mod outer;
|
||||
pub mod cross;
|
||||
pub mod inv;
|
||||
pub mod transpose;
|
||||
pub mod dim;
|
||||
pub mod basis;
|
||||
pub mod rotation;
|
||||
pub mod translation;
|
||||
pub mod transformation;
|
||||
pub mod rlmul;
|
||||
pub mod scalar_op;
|
||||
pub mod homogeneous;
|
||||
pub mod vec_cast;
|
||||
pub mod mat_cast;
|
||||
mod vector;
|
||||
mod sample;
|
||||
mod indexable;
|
||||
mod column;
|
||||
mod row;
|
||||
mod iterable;
|
||||
mod outer;
|
||||
mod cross;
|
||||
mod inv;
|
||||
mod transpose;
|
||||
mod dim;
|
||||
mod basis;
|
||||
mod rotation;
|
||||
mod translation;
|
||||
mod transformation;
|
||||
mod rlmul;
|
||||
mod scalar_op;
|
||||
mod homogeneous;
|
||||
mod vec_cast;
|
||||
mod mat_cast;
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
@ -5,9 +5,10 @@ use std::vec::{VecIterator, VecMutIterator};
|
|||
use std::iterator::{Iterator, FromIterator};
|
||||
use std::cmp::ApproxEq;
|
||||
|
||||
pub use traits::translation::*;
|
||||
pub use traits::transformation::*;
|
||||
pub use traits::rotation::*;
|
||||
use traits::translation::*;
|
||||
use traits::transformation::*;
|
||||
use traits::rotation::*;
|
||||
|
||||
pub use traits::homogeneous::*;
|
||||
pub use traits::vec_cast::*;
|
||||
pub use traits::vector::*;
|
||||
|
|
Loading…
Reference in New Issue