pub struct ModuleImport {
pub module: String,
pub local: String,
pub items: Vec<ImportedItem>,
pub factorio_mod: Option<String>,
pub module_root: Option<String>,
}Fields§
§module: StringDotted module path inside the Factorio mod (e.g. shared.player).
local: String§items: Vec<ImportedItem>§factorio_mod: Option<String>When set, require targets this Factorio mod instead of the consuming mod.
module_root: Option<String>Path prefix inside the Factorio mod (Some("lua"), Some(""), …).
When Self::factorio_mod is None, codegen always uses lua.
Trait Implementations§
Source§impl Clone for ModuleImport
impl Clone for ModuleImport
Source§fn clone(&self) -> ModuleImport
fn clone(&self) -> ModuleImport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleImport
impl Debug for ModuleImport
impl Eq for ModuleImport
Source§impl PartialEq for ModuleImport
impl PartialEq for ModuleImport
impl StructuralPartialEq for ModuleImport
Auto Trait Implementations§
impl Freeze for ModuleImport
impl RefUnwindSafe for ModuleImport
impl Send for ModuleImport
impl Sync for ModuleImport
impl Unpin for ModuleImport
impl UnsafeUnpin for ModuleImport
impl UnwindSafe for ModuleImport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more