Trait num_traits::identities::One
[−]
[src]
pub trait One: Sized + Mul<Self, Output=Self> { fn one() -> Self; }
Defines a multiplicative identity element for Self
.
Required Methods
Implementors
impl One for usize
impl One for u8
impl One for u16
impl One for u32
impl One for u64
impl One for isize
impl One for i8
impl One for i16
impl One for i32
impl One for i64
impl One for f32
impl One for f64
impl<T: Clone + Num> One for Complex<T>
impl One for BigUint
impl One for BigInt
impl<T: Clone + Integer> One for Ratio<T>
impl<N> One for Vec1<N> where N: Copy + One + Sub<N, Output=N> + Add<N, Output=N>
impl<N> One for Vec2<N> where N: Copy + One + Sub<N, Output=N> + Add<N, Output=N>
impl<N> One for Vec3<N> where N: Copy + One + Sub<N, Output=N> + Add<N, Output=N>
impl<N> One for Vec4<N> where N: Copy + One + Sub<N, Output=N> + Add<N, Output=N>
impl<N> One for Vec5<N> where N: Copy + One + Sub<N, Output=N> + Add<N, Output=N>
impl<N> One for Vec6<N> where N: Copy + One + Sub<N, Output=N> + Add<N, Output=N>
impl<N: BaseNum> One for UnitQuat<N>
impl<N> One for Quat<N> where N: Copy + One + Sub<N, Output=N> + Add<N, Output=N>
impl<N: Copy + BaseNum> One for Mat1<N>
impl<N: Copy + BaseNum> One for Mat2<N>
impl<N: Copy + BaseNum> One for Mat3<N>
impl<N: Copy + BaseNum> One for Mat4<N>
impl<N: Copy + BaseNum> One for Mat5<N>
impl<N: Copy + BaseNum> One for Mat6<N>
impl<N: BaseNum> One for Rot2<N>
impl<N: BaseNum> One for Rot3<N>
impl<N: BaseNum> One for Rot4<N>
impl<N: BaseFloat> One for Iso2<N>
impl<N: BaseFloat> One for Iso3<N>
impl<N: BaseFloat> One for Iso4<N>
impl One for Identity
impl<N: One> One for Vec0<N>
impl<N> One for Vec1<N> where N: One + Sub<N, Output=N> + Add<N, Output=N> + Copy
impl<N> One for Vec2<N> where N: One + Sub<N, Output=N> + Add<N, Output=N> + Copy
impl<N> One for Vec3<N> where N: One + Sub<N, Output=N> + Add<N, Output=N> + Copy
impl<N> One for Vec4<N> where N: One + Sub<N, Output=N> + Add<N, Output=N> + Copy
impl<N> One for Vec5<N> where N: One + Sub<N, Output=N> + Add<N, Output=N> + Copy
impl<N> One for Vec6<N> where N: One + Sub<N, Output=N> + Add<N, Output=N> + Copy
impl<N> One for UnitQuat<N> where N: BaseNum
impl<N> One for Quat<N> where N: One + Sub<N, Output=N> + Add<N, Output=N> + Copy
impl<N> One for Mat1<N> where N: Copy + BaseNum
impl<N> One for Mat2<N> where N: Copy + BaseNum
impl<N> One for Mat3<N> where N: Copy + BaseNum
impl<N> One for Mat4<N> where N: Copy + BaseNum
impl<N> One for Mat5<N> where N: Copy + BaseNum
impl<N> One for Mat6<N> where N: Copy + BaseNum
impl<N> One for Rot2<N> where N: BaseNum
impl<N> One for Rot3<N> where N: BaseNum
impl<N> One for Rot4<N> where N: BaseNum
impl<N> One for Iso2<N> where N: BaseFloat
impl<N> One for Iso3<N> where N: BaseFloat
impl<N> One for Iso4<N> where N: BaseFloat
impl One for Identity
impl<N> One for Vec0<N> where N: One