[−][src]Function genco::lang::swift::import
pub fn import<M, N>(module: M, name: N) -> Import where
M: Into<ItemStr>,
N: Into<ItemStr>,
Setup an imported element.
Examples
use genco::prelude::*; let toks = quote!(#(swift::import("Foo", "Debug"))); assert_eq!( vec![ "import Foo", "", "Debug", ], toks.to_file_vec()? );