/// Expect that `ty1` is a subtype of `ty2` in the current context.
Expect that `ty1` is a subtype of `ty2` in the current context.
Expect that ` ty1 ` is a subtype of ` ty2 ` in the current context .
pub fn check_subtype(
        &self,
        metas: &meta::Env,
        ty1: &Rc<Type>,
        ty2: &Rc<Type>,
    ) -> Result<(), TypeError> {
        if nbe::check_ty(self.prims(), metas, self.values().size(), true, ty1, ty2)
            .map_err(TypeError::Nbe)?
        {
            Ok(())
        } else {
            Err(TypeError::ExpectedSubtype(ty1.clone(), ty2.clone()))
        }
    }
pub fn check_subtype ( & self , metas : & meta :: Env , ty1 : & Rc < Type > , ty2 : & Rc < Type > , ) -> Result < ( ) , TypeError > { if nbe :: check_ty ( self . prims ( ) , metas , self . values ( ) . size ( ) , true , ty1 , ty2 ) . map_err ( TypeError :: Nbe ) ? { Ok ( ( ) ) } else { Err ( TypeError :: ExpectedSubtype ( ty1 . clone ( ) , ty2 . clone ( ) ) ) } }
Expect that `ty1` is a subtype of `ty2` in the current context.
Expect that ` ty1 ` is a subtype of ` ty2 ` in the current context .
&self
metas
&meta::Env
ty1
&Rc<Type>
ty2
&Rc<Type>