update for rustc 21d1f4d7c

This commit is contained in:
Ben Foppa 2014-09-15 21:30:36 -04:00
parent 560dff3891
commit 6c8f14966c
2 changed files with 14 additions and 16 deletions

View File

@ -7,14 +7,6 @@ use traits::structure::{Iterable, IterableMut, Indexable, Basis, Dim};
use traits::geometry::{Translation, Dot, Norm};
use structs::vec;
impl<N> vec::Vec0<N> {
/// Creates a new vector.
#[inline]
pub fn new() -> vec::Vec0<N> {
vec::Vec0
}
}
impl<N> Indexable<uint, N> for vec::Vec0<N> {
#[inline]
fn at(&self, _: uint) -> N {
@ -44,14 +36,6 @@ impl<N> Indexable<uint, N> for vec::Vec0<N> {
}
}
impl<N> vec::Vec0<N> {
/// Creates a new vector. The parameter is not taken in account.
#[inline]
pub fn new_repeat(_: N) -> vec::Vec0<N> {
vec::Vec0
}
}
impl<N: 'static> Iterable<N> for vec::Vec0<N> {
#[inline]
fn iter<'l>(&'l self) -> Items<'l, N> {

View File

@ -17,6 +17,20 @@ use traits::structure::{Basis, Cast, Dim, Indexable, Iterable, IterableMut};
#[deriving(Eq, PartialEq, Decodable, Clone, Rand, Zero, Show)]
pub struct Vec0<N>;
impl<N> Vec0<N> {
/// Creates a new vector.
#[inline]
pub fn new() -> Vec0<N> {
Vec0
}
/// Creates a new vector. The parameter is not taken in account.
#[inline]
pub fn new_repeat(_: N) -> Vec0<N> {
Vec0
}
}
/// Vector of dimension 1.
#[deriving(Eq, PartialEq, Encodable, Decodable, Clone, Hash, Rand, Zero, Show)]
pub struct Vec1<N> {