forked from M-Labs/nalgebra
Update to the last Rust.
The `Bounded` trait does not exist any more.
This commit is contained in:
parent
3e41e18c32
commit
c1b91eefbb
@ -33,8 +33,8 @@ pub trait RealVec<N: Real>: Vec<N> + Norm<N> {
|
|||||||
|
|
||||||
/// Trait grouping uncommon, low-level and borderline (from the mathematical point of view)
|
/// Trait grouping uncommon, low-level and borderline (from the mathematical point of view)
|
||||||
/// operations on vectors.
|
/// operations on vectors.
|
||||||
pub trait VecExt<N>: Vec<N> + Indexable<uint, N> + Iterable<N> +
|
pub trait VecExt<N>: Vec<N> + Indexable<uint, N> + Iterable<N> + UniformSphereSample + ScalarAdd<N>
|
||||||
UniformSphereSample + ScalarAdd<N> + ScalarSub<N> + Bounded + Orderable
|
+ ScalarSub<N> + Orderable
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
/// Trait grouping uncommon, low-level and borderline (from the mathematical point of view)
|
/// Trait grouping uncommon, low-level and borderline (from the mathematical point of view)
|
||||||
@ -47,8 +47,8 @@ Vec<N> for V { }
|
|||||||
impl<N: Real, V: Vec<N> + Norm<N>> RealVec<N> for V { }
|
impl<N: Real, V: Vec<N> + Norm<N>> RealVec<N> for V { }
|
||||||
|
|
||||||
impl<N,
|
impl<N,
|
||||||
V: Vec<N> + Indexable<uint, N> + Iterable<N> +
|
V: Vec<N> + Indexable<uint, N> + Iterable<N> + UniformSphereSample + ScalarAdd<N> +
|
||||||
UniformSphereSample + ScalarAdd<N> + ScalarSub<N> + Bounded + Orderable>
|
ScalarSub<N> + Orderable>
|
||||||
VecExt<N> for V { }
|
VecExt<N> for V { }
|
||||||
|
|
||||||
impl<N: Real, V: RealVec<N> + VecExt<N> + Basis + Round> RealVecExt<N> for V { }
|
impl<N: Real, V: RealVec<N> + VecExt<N> + Basis + Round> RealVecExt<N> for V { }
|
||||||
|
Loading…
Reference in New Issue
Block a user