Correct hanlding of reactions

while converting from System to PositiveSystem
This commit is contained in:
elvis
2025-09-08 19:04:26 +02:00
parent 49051358f0
commit 2571148e74
6 changed files with 232 additions and 53 deletions

View File

@ -67,3 +67,15 @@ impl PrintableWithTranslator for PositiveType {
)
}
}
impl From<(IdType, IdState)> for PositiveType {
fn from(value: (IdType, IdState)) -> Self {
Self { id: value.0, state: value.1 }
}
}
impl From<(&IdType, &IdState)> for PositiveType {
fn from(value: (&IdType, &IdState)) -> Self {
Self { id: *value.0, state: *value.1 }
}
}