[−][src]Function genco::prelude::python::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!(#(python::local("dict"))); assert_eq!(vec!["dict"], toks.to_file_vec().unwrap());