better print for systems
This commit is contained in:
@ -668,7 +668,7 @@ impl PrintableWithTranslator for System {
|
|||||||
) -> std::fmt::Result {
|
) -> std::fmt::Result {
|
||||||
write!(
|
write!(
|
||||||
f,
|
f,
|
||||||
"[delta: {}, available_entities: {}, context_process: {}, \
|
"[\ndelta: {},\navailable_entities: {},\ncontext_process: {},\n\
|
||||||
reaction_rules: [",
|
reaction_rules: [",
|
||||||
Formatter::from(translator, &*self.delta),
|
Formatter::from(translator, &*self.delta),
|
||||||
Formatter::from(translator, &self.available_entities),
|
Formatter::from(translator, &self.available_entities),
|
||||||
@ -682,7 +682,7 @@ impl PrintableWithTranslator for System {
|
|||||||
write!(f, "{}, ", Formatter::from(translator, el))?;
|
write!(f, "{}, ", Formatter::from(translator, el))?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
write!(f, "] ]")
|
write!(f, "]\n]")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -982,7 +982,7 @@ impl PrintableWithTranslator for PositiveSystem {
|
|||||||
) -> std::fmt::Result {
|
) -> std::fmt::Result {
|
||||||
write!(
|
write!(
|
||||||
f,
|
f,
|
||||||
"[delta: {}, available_entities: {}, context_process: {}, \
|
"[\ndelta: {},\navailable_entities: {},\ncontext_process: {},\n\
|
||||||
reaction_rules: [",
|
reaction_rules: [",
|
||||||
Formatter::from(translator, &*self.delta),
|
Formatter::from(translator, &*self.delta),
|
||||||
Formatter::from(translator, &self.available_entities),
|
Formatter::from(translator, &self.available_entities),
|
||||||
@ -996,7 +996,7 @@ impl PrintableWithTranslator for PositiveSystem {
|
|||||||
write!(f, "{}, ", Formatter::from(translator, el))?;
|
write!(f, "{}, ", Formatter::from(translator, el))?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
write!(f, "] ]")
|
write!(f, "]\n]")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user