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

pub struct Import<I = DefaultImporter> {
    pub paths: RwLock<Vec<PathBuf>>,
    pub loaders: RwLock<FnvMap<String, ExternLoader>>,
    pub importer: I,
    // some fields omitted
}

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]

Auto Trait Implementations

impl<I> Send for Import<I> where
    I: Send

impl<I> Sync for Import<I> where
    I: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<D, T> FromPtr for T
[src]

impl<F> Macro for F where
    F: Send + Sync + Clone + Any + Fn(&mut MacroExpander, Vec<Spanned<Expr<Symbol>, ByteIndex>>) -> Box<dyn Future<Item = Spanned<Expr<Symbol>, ByteIndex>, Error = Box<dyn Error + 'static + Sync + Send>> + 'static + Send>, 
[src]

impl<Choices> CoproductSubsetter for Choices
[src]

impl<Source> Sculptor for Source
[src]

impl<T, U, I> LiftInto for T where
    U: LiftFrom<T, I>, 
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Erased for T
[src]