[][src]Function genco::prelude::swift::imported

pub fn imported<M, N>(module: M, name: N) -> Type where
    M: Into<ItemStr>,
    N: Into<ItemStr>, 

Setup an imported element.

Examples

use genco::prelude::*;

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

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