Files
nixjit/src/ty/internal/func.rs

22 lines
339 B
Rust

use std::rc::Rc;
use crate::env::Env;
use crate::ir;
pub struct Func<'gc> {
pub func: &'gc ir::Func,
pub env: Rc<Env>,
}
impl<'gc> Func<'gc> {
pub fn new(func: &'gc ir::Func, env: Rc<Env>) -> Self {
Self { func, env }
}
}
impl PartialEq for Func<'_> {
fn eq(&self, _: &Self) -> bool {
false
}
}