Trait IteratorProduct

1.12.0 ยท Source
pub trait IteratorProduct<A = Self>: Sized {
    // Required method
    fn product<I>(iter: I) -> Self
       where I: Iterator<Item = A>;
}
Expand description

๐Ÿ”„ core Represents types that can be created by multiplying elements of an iterator.

Re-exported from core::iter:: Productโ†’IteratorProduct.


Trait to represent types that can be created by multiplying elements of an iterator.

This trait is used to implement Iterator::product(). Types which implement this trait can be generated by using the product() method on an iterator. Like FromIterator, this trait should rarely be called directly.

Required Methodsยง

1.12.0 ยท Source

fn product<I>(iter: I) -> Self
where I: Iterator<Item = A>,

Takes an iterator and generates Self from the elements by multiplying the items.

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementorsยง

1.12.0 ยท Sourceยง

impl Product for f32

1.12.0 ยท Sourceยง

impl Product for f64

1.12.0 ยท Sourceยง

impl Product for i8

1.12.0 ยท Sourceยง

impl Product for i16

1.12.0 ยท Sourceยง

impl Product for i32

1.12.0 ยท Sourceยง

impl Product for i64

1.12.0 ยท Sourceยง

impl Product for i128

1.12.0 ยท Sourceยง

impl Product for isize

1.12.0 ยท Sourceยง

impl Product for u8

1.12.0 ยท Sourceยง

impl Product for u16

1.12.0 ยท Sourceยง

impl Product for u32

1.12.0 ยท Sourceยง

impl Product for u64

1.12.0 ยท Sourceยง

impl Product for u128

1.12.0 ยท Sourceยง

impl Product for usize

Sourceยง

impl Product for BigInt

Sourceยง

impl Product for Number

1.14.0 ยท Sourceยง

impl Product for Wrapping<i8>

1.14.0 ยท Sourceยง

impl Product for Wrapping<i16>

1.14.0 ยท Sourceยง

impl Product for Wrapping<i32>

1.14.0 ยท Sourceยง

impl Product for Wrapping<i64>

1.14.0 ยท Sourceยง

impl Product for Wrapping<i128>

1.14.0 ยท Sourceยง

impl Product for Wrapping<isize>

1.14.0 ยท Sourceยง

impl Product for Wrapping<u8>

1.14.0 ยท Sourceยง

impl Product for Wrapping<u16>

1.14.0 ยท Sourceยง

impl Product for Wrapping<u32>

1.14.0 ยท Sourceยง

impl Product for Wrapping<u64>

1.14.0 ยท Sourceยง

impl Product for Wrapping<u128>

1.14.0 ยท Sourceยง

impl Product for Wrapping<usize>

Sourceยง

impl Product for Mat3

Sourceยง

impl Product for Mat2

Sourceยง

impl Product for Mat3A

Sourceยง

impl Product for Mat4

Sourceยง

impl Product for Quat

Sourceยง

impl Product for Vec3A

Sourceยง

impl Product for Vec4

Sourceยง

impl Product for Vec2

Sourceยง

impl Product for Vec3

Sourceยง

impl Product for DMat2

Sourceยง

impl Product for DMat3

Sourceยง

impl Product for DMat4

Sourceยง

impl Product for DQuat

Sourceยง

impl Product for DVec2

Sourceยง

impl Product for DVec3

Sourceยง

impl Product for DVec4

Sourceยง

impl Product for I8Vec2

Sourceยง

impl Product for I8Vec3

Sourceยง

impl Product for I8Vec4

Sourceยง

impl Product for I16Vec2

Sourceยง

impl Product for I16Vec3

Sourceยง

impl Product for I16Vec4

Sourceยง

impl Product for IVec2

Sourceยง

impl Product for IVec3

Sourceยง

impl Product for IVec4

Sourceยง

impl Product for I64Vec2

Sourceยง

impl Product for I64Vec3

Sourceยง

impl Product for I64Vec4

Sourceยง

impl Product for U8Vec2

Sourceยง

impl Product for U8Vec3

Sourceยง

impl Product for U8Vec4

Sourceยง

impl Product for U16Vec2

Sourceยง

impl Product for U16Vec3

Sourceยง

impl Product for U16Vec4

Sourceยง

impl Product for UVec2

Sourceยง

impl Product for UVec3

Sourceยง

impl Product for UVec4

Sourceยง

impl Product for U64Vec2

Sourceยง

impl Product for U64Vec3

Sourceยง

impl Product for U64Vec4

1.12.0 ยท Sourceยง

impl<'a> Product<&'a f32> for f32

1.12.0 ยท Sourceยง

impl<'a> Product<&'a f64> for f64

1.12.0 ยท Sourceยง

impl<'a> Product<&'a i8> for i8

1.12.0 ยท Sourceยง

impl<'a> Product<&'a i16> for i16

1.12.0 ยท Sourceยง

impl<'a> Product<&'a i32> for i32

1.12.0 ยท Sourceยง

impl<'a> Product<&'a i64> for i64

1.12.0 ยท Sourceยง

impl<'a> Product<&'a i128> for i128

1.12.0 ยท Sourceยง

impl<'a> Product<&'a isize> for isize

1.12.0 ยท Sourceยง

impl<'a> Product<&'a u8> for u8

1.12.0 ยท Sourceยง

impl<'a> Product<&'a u16> for u16

1.12.0 ยท Sourceยง

impl<'a> Product<&'a u32> for u32

1.12.0 ยท Sourceยง

impl<'a> Product<&'a u64> for u64

1.12.0 ยท Sourceยง

impl<'a> Product<&'a u128> for u128

1.12.0 ยท Sourceยง

impl<'a> Product<&'a usize> for usize

Sourceยง

impl<'a> Product<&'a BigInt> for BigInt

Sourceยง

impl<'a> Product<&'a Number> for Number

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<i8>> for Wrapping<i8>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<i16>> for Wrapping<i16>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<i32>> for Wrapping<i32>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<i64>> for Wrapping<i64>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<i128>> for Wrapping<i128>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<isize>> for Wrapping<isize>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<u8>> for Wrapping<u8>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<u16>> for Wrapping<u16>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<u32>> for Wrapping<u32>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<u64>> for Wrapping<u64>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<u128>> for Wrapping<u128>

1.14.0 ยท Sourceยง

impl<'a> Product<&'a Wrapping<usize>> for Wrapping<usize>

Sourceยง

impl<'a> Product<&'a Affine2> for Affine2

Sourceยง

impl<'a> Product<&'a Affine3A> for Affine3A

Sourceยง

impl<'a> Product<&'a Mat3> for Mat3

Sourceยง

impl<'a> Product<&'a Mat2> for Mat2

Sourceยง

impl<'a> Product<&'a Mat3A> for Mat3A

Sourceยง

impl<'a> Product<&'a Mat4> for Mat4

Sourceยง

impl<'a> Product<&'a Quat> for Quat

Sourceยง

impl<'a> Product<&'a Vec3A> for Vec3A

Sourceยง

impl<'a> Product<&'a Vec4> for Vec4

Sourceยง

impl<'a> Product<&'a Vec2> for Vec2

Sourceยง

impl<'a> Product<&'a Vec3> for Vec3

Sourceยง

impl<'a> Product<&'a DAffine2> for DAffine2

Sourceยง

impl<'a> Product<&'a DAffine3> for DAffine3

Sourceยง

impl<'a> Product<&'a DMat2> for DMat2

Sourceยง

impl<'a> Product<&'a DMat3> for DMat3

Sourceยง

impl<'a> Product<&'a DMat4> for DMat4

Sourceยง

impl<'a> Product<&'a DQuat> for DQuat

Sourceยง

impl<'a> Product<&'a DVec2> for DVec2

Sourceยง

impl<'a> Product<&'a DVec3> for DVec3

Sourceยง

impl<'a> Product<&'a DVec4> for DVec4

Sourceยง

impl<'a> Product<&'a I8Vec2> for I8Vec2

Sourceยง

impl<'a> Product<&'a I8Vec3> for I8Vec3

Sourceยง

impl<'a> Product<&'a I8Vec4> for I8Vec4

Sourceยง

impl<'a> Product<&'a I16Vec2> for I16Vec2

Sourceยง

impl<'a> Product<&'a I16Vec3> for I16Vec3

Sourceยง

impl<'a> Product<&'a I16Vec4> for I16Vec4

Sourceยง

impl<'a> Product<&'a IVec2> for IVec2

Sourceยง

impl<'a> Product<&'a IVec3> for IVec3

Sourceยง

impl<'a> Product<&'a IVec4> for IVec4

Sourceยง

impl<'a> Product<&'a I64Vec2> for I64Vec2

Sourceยง

impl<'a> Product<&'a I64Vec3> for I64Vec3

Sourceยง

impl<'a> Product<&'a I64Vec4> for I64Vec4

Sourceยง

impl<'a> Product<&'a U8Vec2> for U8Vec2

Sourceยง

impl<'a> Product<&'a U8Vec3> for U8Vec3

Sourceยง

impl<'a> Product<&'a U8Vec4> for U8Vec4

Sourceยง

impl<'a> Product<&'a U16Vec2> for U16Vec2

Sourceยง

impl<'a> Product<&'a U16Vec3> for U16Vec3

Sourceยง

impl<'a> Product<&'a U16Vec4> for U16Vec4

Sourceยง

impl<'a> Product<&'a UVec2> for UVec2

Sourceยง

impl<'a> Product<&'a UVec3> for UVec3

Sourceยง

impl<'a> Product<&'a UVec4> for UVec4

Sourceยง

impl<'a> Product<&'a U64Vec2> for U64Vec2

Sourceยง

impl<'a> Product<&'a U64Vec3> for U64Vec3

Sourceยง

impl<'a> Product<&'a U64Vec4> for U64Vec4

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<f32, N>> for Simd<f32, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<f64, N>> for Simd<f64, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<i8, N>> for Simd<i8, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<i16, N>> for Simd<i16, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<i32, N>> for Simd<i32, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<i64, N>> for Simd<i64, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<isize, N>> for Simd<isize, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<u8, N>> for Simd<u8, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<u16, N>> for Simd<u16, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<u32, N>> for Simd<u32, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<u64, N>> for Simd<u64, N>

Sourceยง

impl<'a, const N: usize> Product<&'a Simd<usize, N>> for Simd<usize, N>

ยง

impl<RHS> Product<RHS> for f32x4
where f32x4: MulAssign<RHS>,

ยง

impl<RHS> Product<RHS> for f32x8
where f32x8: MulAssign<RHS>,

ยง

impl<RHS> Product<RHS> for f64x2
where f64x2: MulAssign<RHS>,

ยง

impl<RHS> Product<RHS> for f64x4
where f64x4: MulAssign<RHS>,

ยง

impl<RHS> Product<RHS> for i16x8
where i16x8: MulAssign<RHS>,

ยง

impl<RHS> Product<RHS> for i32x4
where i32x4: MulAssign<RHS>,

ยง

impl<RHS> Product<RHS> for i32x8
where i32x8: MulAssign<RHS>,

1.37.0 ยท Sourceยง

impl<T, U> Product<Option<U>> for Option<T>
where T: Product<U>,

1.16.0 ยท Sourceยง

impl<T, U, E> Product<Result<U, E>> for Result<T, E>
where T: Product<U>,

Sourceยง

impl<const N: usize> Product for Simd<f32, N>

Sourceยง

impl<const N: usize> Product for Simd<f64, N>

Sourceยง

impl<const N: usize> Product for Simd<i8, N>

Sourceยง

impl<const N: usize> Product for Simd<i16, N>

Sourceยง

impl<const N: usize> Product for Simd<i32, N>

Sourceยง

impl<const N: usize> Product for Simd<i64, N>

Sourceยง

impl<const N: usize> Product for Simd<isize, N>

Sourceยง

impl<const N: usize> Product for Simd<u8, N>

Sourceยง

impl<const N: usize> Product for Simd<u16, N>

Sourceยง

impl<const N: usize> Product for Simd<u32, N>

Sourceยง

impl<const N: usize> Product for Simd<u64, N>

Sourceยง

impl<const N: usize> Product for Simd<usize, N>