Patch issue 11 and 8
This commit is contained in:
parent
d46451bea7
commit
eabdd04278
1 changed files with 3 additions and 3 deletions
|
@ -212,7 +212,7 @@ fn output_gen(family: oop::Family, output_path: String) -> (String, String){
|
|||
"{}{}{}{}{}",
|
||||
"use crate::datatypes;\nuse super::{Object, ObjectSpecies, RawObject};\nuse derive_getters::Getters;\nuse derive_builder::Builder;\nuse downcast_rs::Downcast;\n\npub trait ",
|
||||
family.get_name(),
|
||||
":Downcast{}\n\n#[derive(Clone,Debug)]\npub enum ",
|
||||
":std::fmt::Debug + Downcast{}\n\n#[derive(Clone,Debug)]\npub enum ",
|
||||
family.get_name(),
|
||||
"Species{\n"
|
||||
);
|
||||
|
@ -326,9 +326,9 @@ fn output_gen(family: oop::Family, output_path: String) -> (String, String){
|
|||
write_string = format!(
|
||||
"{}{}{}{}{}{}{}{}{}{}{}{}{}{}",
|
||||
write_string,
|
||||
"}\n\npub impl ",
|
||||
"}\n\nimpl ",
|
||||
object.get_name(),
|
||||
" {\n\tfn new() -> Self { todo!() }\n}\nimpl Object for ",
|
||||
" {\n\tpub fn new() -> Self { todo!() }\n}\nimpl Object for ",
|
||||
object.get_name(),
|
||||
"{\n\tfn get_family(&self) -> datatypes::Family { datatypes::Family::",
|
||||
family.get_name(),
|
||||
|
|
Loading…
Add table
Reference in a new issue