trellis_runner/
problem.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug)]
pub struct Problem<P>(P);

impl<P> Problem<P> {
    pub(crate) fn new(inner: P) -> Self {
        Self(inner)
    }
}

impl<P> AsRef<P> for Problem<P> {
    fn as_ref(&self) -> &P {
        &self.0
    }
}