Implement `Into<Vec<N>>` for `MatrixVec<N, R, C>`

This commit is contained in:
Jack Wrenn 2018-11-20 17:44:29 -05:00 committed by Sébastien Crozet
parent 74ff6ae199
commit accdd51faf
1 changed files with 7 additions and 0 deletions

View File

@ -88,6 +88,13 @@ impl<N, R: Dim, C: Dim> Deref for MatrixVec<N, R, C> {
}
}
impl<N, R: Dim, C: Dim> Into<Vec<N>> for MatrixVec<N, R, C>
{
fn into(self) -> Vec<N> {
self.data
}
}
/*
*
* Dynamic Static