Files
lysp/src/vm/value/bytecode.rs
T

17 lines
389 B
Rust

use std::fmt;
use crate::vm::module::ModuleRef;
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct BytecodeFunction {
pub module: ModuleRef,
pub required_count: usize,
pub address: usize,
}
impl fmt::Display for BytecodeFunction {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "<bytecode {:p}:{}>", self.module, self.address)
}
}