Struct gluon::import::Import [] [src]

pub struct Import<I = DefaultImporter> {
    pub paths: RwLock<Vec<PathBuf>>,
    pub importer: I,
}

Macro which rewrites occurances of import! "filename" to a load of that file if it is not already loaded and then a global access to the loaded module

Fields

Methods

impl<I> Import<I>
[src]

Creates a new import macro

Adds a path to the list of paths which the importer uses to find files

Trait Implementations

impl<I> Macro for Import<I> where
    I: Importer
[src]