Skip to main content

dada_compiler/
fork.rs

1use std::ops::Deref;
2
3pub struct Fork<C> {
4    compiler: C,
5}
6
7impl<C> Deref for Fork<C> {
8    type Target = C;
9
10    fn deref(&self) -> &Self::Target {
11        &self.compiler
12    }
13}
14
15impl<C> From<C> for Fork<C> {
16    fn from(value: C) -> Self {
17        Fork { compiler: value }
18    }
19}