[][src]Function genco::swift::array

pub fn array<'a, I>(inner: I) -> Array where
    I: Into<TypeBox>, 

Setup an array.

Examples

use genco::prelude::*;

let toks = quote!(#(swift::array(swift::imported("Foo", "Debug"))));

assert_eq!(
    vec![
        "import Foo",
        "",
        "[Debug]"
    ],
    toks.to_file_vec().unwrap()
);