Merge pull request #164 from simnalamburt/rust-update

Update rust
This commit is contained in:
Colin Sherratt 2015-02-08 13:15:55 -05:00
commit 1e202709b7
4 changed files with 1 additions and 14 deletions

View file

@ -541,8 +541,6 @@ impl<S> Index<usize> for Matrix2<S> {
}
impl<S> IndexMut<usize> for Matrix2<S> {
type Output = Vector2<S>;
#[inline]
fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut Vector2<S> {
FixedArray::from_fixed_mut(&mut self.as_mut_fixed()[*i])
@ -625,8 +623,6 @@ impl<S> Index<usize> for Matrix3<S> {
}
impl<S> IndexMut<usize> for Matrix3<S> {
type Output = Vector3<S>;
#[inline]
fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut Vector3<S> {
FixedArray::from_fixed_mut(&mut self.as_mut_fixed()[*i])
@ -714,8 +710,6 @@ impl<S> Index<usize> for Matrix4<S> {
}
impl<S> IndexMut<usize> for Matrix4<S> {
type Output = Vector4<S>;
#[inline]
fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut Vector4<S> {
FixedArray::from_fixed_mut(&mut self.as_mut_fixed()[*i])

View file

@ -144,7 +144,6 @@ impl<S: BaseNum> Index<usize> for Point2<S> {
}
impl<S: BaseNum> IndexMut<usize> for Point2<S> {
type Output = S;
#[inline]
fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut S {
&mut self.as_mut_fixed()[*i]
@ -301,8 +300,6 @@ impl<S: BaseNum> Index<usize> for Point3<S> {
}
impl<S: BaseNum> IndexMut<usize> for Point3<S> {
type Output = S;
#[inline]
fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut S {
&mut self.as_mut_fixed()[*i]

View file

@ -61,8 +61,6 @@ impl<S: BaseFloat> Index<usize> for Quaternion<S> {
}
impl<S: BaseFloat> IndexMut<usize> for Quaternion<S> {
type Output = S;
#[inline]
fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut S {
let slice: &'a mut [S; 4] = unsafe { mem::transmute(self) };
@ -363,7 +361,7 @@ impl<S: BaseFloat> ToMatrix4<S> for Quaternion<S> {
impl<S: BaseFloat> Neg for Quaternion<S> {
type Output = Quaternion<S>;
#[inline]
fn neg(self) -> Quaternion<S> {
Quaternion::from_sv(-self.s, -self.v)

View file

@ -267,8 +267,6 @@ macro_rules! vec(
}
impl<$S: Copy> IndexMut<usize> for $Self<$S> {
type Output = S;
#[inline]
fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut $S {
&mut self.as_mut_fixed()[*i]