macro_rules! write_vector_fn {
($id:ident, $t:ty, $data:expr) => { ... };
($id:ident, $t:ty : 1, $data:expr) => { ... };
($id:ident, $t:ty : 2, $data:expr) => { ... };
($id:ident, $t:ty : 3, $data:expr) => { ... };
($id:ident, $t:ty : 4, $data:expr) => { ... };
($id:ident, $t:ty : 5, $data:expr) => { ... };
($id:ident, $t:ty : 6, $data:expr) => { ... };
($id:ident, $t:ty : 7, $data:expr) => { ... };
($id:ident, $t:ty : 8, $data:expr) => { ... };
($id:ident, $t:ty : 9, $data:expr) => { ... };
($id:ident, $t:ty : 10, $data:expr) => { ... };
($id:ident, $t:ty : 11, $data:expr) => { ... };
($id:ident, $t:ty : 12, $data:expr) => { ... };
($id:ident, $t:ty : 13, $data:expr) => { ... };
($id:ident, $t:ty : 14, $data:expr) => { ... };
($id:ident, $t:ty : 15, $data:expr) => { ... };
($id:ident, $t:ty : 16, $data:expr) => { ... };
}👎Deprecated since 0.10.0: Use JaggedArray from the rustifact_extra crate instead for a proper static representation
Expand description
Write an array or vector to a vector getter function.
Generates an array-returning function available for import into the main crate via use_symbols.
§Parameters
$id: the name/identifier to give the exported array-returning function.$t: the type of elements of the exported array will contain. Optionally followed by: DIMwhereDIMis the dimension (1, 2, 3, …) of the array. The dimension defaults to 1 when unspecified.$data: the contents of the vector to be returned. May be aVec, an array, an array reference, or array slice.
§Further notes
- Must be called from a build script (build.rs) only.