Trait dimensioned::array::ToGA
[−]
[src]
pub trait ToGA { type Output; fn to_ga() -> Self::Output; }
Implemented for TArr
(a type-level array of type numbers), this gives the equivalent GenericArray
.
Example
#[macro_use] extern crate dimensioned as dim; #[macro_use] extern crate generic_array; use dim::typenum::consts::*; type TArr = tarr![P3, P2, N5, N8, P2]; fn main() { use dim::array::ToGA; let x = TArr::to_ga(); let y = arr![isize; 3, 2, -5, -8, 2]; assert_eq!(x, y); }
Associated Types
type Output
The type of the GenericArray
to which we've converted