Struct liva_parser::statement::import::Import [−][src]
pub struct Import<'a> {
pub external: bool,
pub path: Vec<Variable<'a>>,
pub alias: Option<Variable<'a>>,
}
Expand description
The import struct represents one import statement
Fields
external: bool
If a module is a third-party module, therefore not in the local project or part of the standard lib it has to be marked as an external module.
path: Vec<Variable<'a>>
The path defines where to look for the import. A path is represented as a list of Identifier names
alias: Option<Variable<'a>>
For convenience can a import be aliased, which represented the imported module
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Import<'a>
impl<'a> UnwindSafe for Import<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more