pub struct VarContext { /* private fields */ }Implementations§
Source§impl VarContext
impl VarContext
pub fn new() -> Self
pub fn stable(&self) -> Result<Self>
pub fn one_tick(&self) -> Result<Self>
pub fn pre_tick(&self) -> Result<Self>
pub fn push_var(&mut self, var: String, t: Type)
pub fn push_tick(&mut self)
pub fn get_var(self, var: &String) -> Result<(Type, bool)>
pub fn apply_subs(&mut self, subs: &Vec<(String, Type)>)
pub fn get_free_vars(&self) -> HashSet<String>
Trait Implementations§
Source§impl Clone for VarContext
impl Clone for VarContext
Source§fn clone(&self) -> VarContext
fn clone(&self) -> VarContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VarContext
impl Debug for VarContext
Source§impl PartialEq for VarContext
impl PartialEq for VarContext
impl StructuralPartialEq for VarContext
Auto Trait Implementations§
impl Freeze for VarContext
impl !RefUnwindSafe for VarContext
impl !Send for VarContext
impl !Sync for VarContext
impl Unpin for VarContext
impl !UnwindSafe for VarContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more