pub struct TypeEnv<'a>(/* private fields */);Implementations§
Source§impl<'a> TypeEnv<'a>
impl<'a> TypeEnv<'a>
Sourcepub unsafe fn new() -> Self
pub unsafe fn new() -> Self
Create a new type environment.
§Safety
The instance returned from this method is only valid until the next call to to TranslateArgs::translate or TranslateArgs::front_end.
pub fn new_tmp(&self, ty: Type) -> Temp
pub fn type_of_tmp(&self, tmp: Temp) -> IRType
pub fn type_of_expr(&self, expr: Expr<'_>) -> IRType
Trait Implementations§
impl<'a> Copy for TypeEnv<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeEnv<'a>
impl<'a> RefUnwindSafe for TypeEnv<'a>
impl<'a> !Send for TypeEnv<'a>
impl<'a> !Sync for TypeEnv<'a>
impl<'a> Unpin for TypeEnv<'a>
impl<'a> UnwindSafe for TypeEnv<'a>
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