Make Vector representation transparent

This commit is contained in:
Hanno Braun 2025-11-16 11:18:49 +01:00
parent b1a264af95
commit 410d359e71

View File

@ -14,7 +14,7 @@ use super::{
/// The dimensionality of the vector is defined by the const generic `D`
/// parameter.
#[derive(Clone, Copy, Eq, PartialEq, Hash, Ord, PartialOrd)]
#[repr(C)]
#[repr(transparent)]
pub struct Vector<const D: usize> {
/// # The components of the vector
pub components: [Scalar; D],