connectorx/
utils.rs

1use std::ops::{Deref, DerefMut};
2
3pub struct DummyBox<T>(pub T);
4
5impl<T> Deref for DummyBox<T> {
6    type Target = T;
7
8    fn deref(&self) -> &Self::Target {
9        &self.0
10    }
11}
12
13impl<T> DerefMut for DummyBox<T> {
14    fn deref_mut(&mut self) -> &mut Self::Target {
15        &mut self.0
16    }
17}