pub struct CodegenConfig {
pub features: Vec<String>,
pub modules: HashMap<String, ModuleMapping>,
pub blocklist: Blocklist,
}Fields§
§features: Vec<String>§modules: HashMap<String, ModuleMapping>§blocklist: BlocklistImplementations§
Source§impl CodegenConfig
impl CodegenConfig
Sourcepub fn for_library(&self, kind: LibraryKind) -> CodegenConfig
pub fn for_library(&self, kind: LibraryKind) -> CodegenConfig
The configuration a library of kind is generated with: the one in
rusteal.toml plus Rusteal’s own modules, whose classes are parents
for Rust classes (subsystems), always bound — the editor one for
editor libraries only, as games do not have it.
Trait Implementations§
Source§impl Clone for CodegenConfig
impl Clone for CodegenConfig
Source§impl<'de> Deserialize<'de> for CodegenConfig
impl<'de> Deserialize<'de> for CodegenConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CodegenConfig
impl RefUnwindSafe for CodegenConfig
impl Send for CodegenConfig
impl Sync for CodegenConfig
impl Unpin for CodegenConfig
impl UnsafeUnpin for CodegenConfig
impl UnwindSafe for CodegenConfig
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