[−][src]Struct voile::check::monad::state::TCS
Fields
env: Gamma
Global value context.
local_env: Gamma
Local value context.
gamma: Gamma
Global typing context.
local_gamma: Gamma
Local typing context.
Methods
impl TCS
[src]
pub fn local_type(&self, dbi: DBI) -> &ValInfo
[src]
pub fn glob_type(&self, dbi: DBI) -> &ValInfo
[src]
pub fn local_val(&self, dbi: DBI) -> &ValInfo
[src]
pub fn glob_val(&self, dbi: DBI) -> &ValInfo
[src]
pub fn local_is_type(&self, dbi: DBI) -> bool
[src]
pub fn glob_is_type(&self, dbi: DBI) -> bool
[src]
pub fn pop_local(&mut self)
[src]
pub fn glob_size(&self) -> usize
[src]
impl TCS
[src]
pub fn check_decls(self, decls: Vec<AbsDecl>) -> TCM
[src]
pub fn check_decl(self, decl: AbsDecl) -> TCM
[src]
impl TCS
[src]
So you can do some functional programming based on method call chains.
pub fn evaluate(self, abs: Abs) -> (ValInfo, Self)
[src]
Should be invoked only during type-checking, produce uid-based terms (which can be further type-checked).
pub fn expand_global(self, expr: Val) -> (Val, TCS)
[src]
impl TCS
[src]
So you can do some functional programming based on method call chains.
pub fn check(self, expr: &Abs, expected_type: &Val) -> ValTCM
[src]
pub fn infer(self, value: &Abs) -> ValTCM
[src]
pub fn check_subtype(self, subtype: &Val, supertype: &Val) -> TCM
[src]
pub fn check_type(self, expr: &Abs) -> ValTCM
[src]
Trait Implementations
impl Clone for TCS
[src]
fn clone(&self) -> TCS
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for TCS
[src]
impl Debug for TCS
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,