I can write
type MyMatrix4 = [[f32; 4]; 4];
but I can't do much with it. No "impl", no operators, etc.
I can write
pub struct YourMatrix4 {
pub m: [[f32; 4]; 4]
}
impl YourMatrix4 {
}
but I can't just subscript a variable of type YourMatrix4
.
Am I missing something, or is type
that limited?