[−][src]Function genco::prelude::rust::local
pub fn local<N>(name: N) -> Type where
N: Into<ItemStr>,
Setup a local element.
Local elements do not generate an import statement when added to a file.
Examples
use genco::prelude::*; let toks = quote!(#(rust::local("MyType"))); assert_eq!(vec!["MyType"], toks.to_file_vec().unwrap());