WIP more general transform parameter

This commit is contained in:
Dominik Werder
2023-03-02 19:24:03 +01:00
parent c54eaa6fcb
commit 7bb847b93e
9 changed files with 400 additions and 335 deletions

View File

@@ -59,6 +59,10 @@ pub trait Empty {
fn empty() -> Self;
}
pub trait Appendable<STY>: Empty + WithLen {
fn push(&mut self, ts: u64, pulse: u64, value: STY);
}
pub trait TypeName {
fn type_name(&self) -> String;
}
@@ -196,3 +200,11 @@ impl PartialEq for Box<dyn Events> {
Events::partial_eq_dyn(self.as_ref(), other.as_ref())
}
}
pub struct TransformProperties {
pub needs_value: bool,
}
pub trait TransformStage {
fn query_transform_properties(&self) -> TransformProperties;
}