chore: Move ADR helper files into folders with their corresponding ADR number

This commit is contained in:
2025-06-09 13:39:38 -04:00
parent ee2bba5623
commit 00e71b97f6
17 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
fn main() {}
trait Topology {}
struct DummyTopology {}
impl Topology for DummyTopology {}
impl Topology for LampTopology {}
struct LampTopology {}
struct Maestro {
topology: Box<dyn Topology>,
}
trait Score {
type Topology: Topology;
fn execute(&self, topology: &Self::Topology);
}
struct K8sScore {}
impl Score for K8sScore {
type Topology = LampTopology;
fn execute(&self, topology: &Box<dyn Self::Topology>) {
todo!()
}
}
impl Maestro {
pub fn execute<T: Topology>(&self, score: Box<dyn Score<Topology = T>>) {
score.execute(&self.topology);
}
}