Move Solved to roc_solve

This commit is contained in:
ayazhafiz 2022-07-10 19:42:41 -04:00
parent c9914af5ab
commit 699c4d7fff
No known key found for this signature in database
GPG key ID: B443F7A3030C9AED
9 changed files with 27 additions and 27 deletions

View file

@ -5,25 +5,6 @@ use roc_module::ident::{Lowercase, TagName};
use roc_module::symbol::Symbol;
use roc_region::all::{Loc, Region};
/// A marker that a given Subs has been solved.
/// The only way to obtain a Solved<Subs> is by running the solver on it.
#[derive(Clone, Debug)]
pub struct Solved<T>(pub T);
impl<T> Solved<T> {
pub fn inner(&self) -> &'_ T {
&self.0
}
pub fn inner_mut(&mut self) -> &'_ mut T {
&mut self.0
}
pub fn into_inner(self) -> T {
self.0
}
}
#[derive(Debug, Clone)]
pub struct SolvedLambdaSet(pub SolvedType);