pub trait IntegerVector<T: PrimInt, const LEN: usize>: Vector<T, LEN> {
    fn pow(self, n: u32) -> Self;
}
Expand description

Trait for structs that represent a Vector that contains primitive integer data types.

Required Methods

Raises all numbers within the IntegerVector to the specified power.

Example
let vector = Vector3::new(2, 4, 6).pow(2);
assert_eq!(vector, Vector3::new(4, 16, 36));

Implementors