Starting to work on rendering
This commit is contained in:
@@ -31,6 +31,12 @@ macro_rules! make_vector {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Into<[T; $number]> for $name<T> {
|
||||
fn into(self) -> [T; $number] {
|
||||
self.data
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Copy + Clone> Into<($( $t ) ,* )> for $name<T> {
|
||||
fn into(self) -> ($( $t ) ,* ) {
|
||||
( $( self.data[$y] ), *)
|
||||
|
||||
Reference in New Issue
Block a user