Remove duplicate Dimensional trait definition

This commit is contained in:
Brendan Zabarauskas 2013-06-16 15:37:30 +10:00
parent a4c7332e2b
commit f5ba7a7982
10 changed files with 11 additions and 22 deletions

View file

@ -23,15 +23,10 @@
#[license = "ASL2"];
#[crate_type = "lib"];
pub mod dim;
pub mod mat;
pub mod quat;
pub mod vec;
pub mod projection;
pub trait Dimensional<T,Slice> {
pub fn index<'a>(&'a self, i: uint) -> &'a T;
pub fn index_mut<'a>(&'a mut self, i: uint) -> &'a mut T;
pub fn as_slice<'a>(&'a self) -> &'a Slice;
pub fn as_mut_slice<'a>(&'a mut self) -> &'a mut Slice;
}

View file

@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub use super::Dimensional;
pub use dim::Dimensional;
pub use self::mat2::{Mat2, ToMat2};
pub use self::mat3::{Mat3, ToMat3};
pub use self::mat4::{Mat4, ToMat4};

View file

@ -13,8 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub use super::Dimensional;
use dim::Dimensional;
use mat::{Mat3, ToMat3};
use mat::{Mat4, ToMat4};
use vec::Vec2;

View file

@ -13,8 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub use super::Dimensional;
use dim::Dimensional;
use mat::{Mat4, ToMat4};
use quat::{Quat, ToQuat};
use vec::Vec3;

View file

@ -13,8 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub use super::Dimensional;
use dim::Dimensional;
use mat::Mat3;
use vec::Vec4;

View file

@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub use super::Dimensional;
pub use dim::Dimensional;
use mat::{Mat3, ToMat3};
use vec::Vec3;

View file

@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub use super::Dimensional;
pub use dim::Dimensional;
pub use self::vec2::Vec2;
pub use self::vec3::Vec3;
pub use self::vec4::Vec4;

View file

@ -13,8 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub use super::Dimensional;
use dim::Dimensional;
mod macros;
mod dim_macros;
mod vec_macros;

View file

@ -13,8 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub use super::Dimensional;
use dim::Dimensional;
mod macros;
mod dim_macros;
mod vec_macros;

View file

@ -13,8 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub use super::Dimensional;
use dim::Dimensional;
mod macros;
mod dim_macros;
mod vec_macros;