ttvm 0.4.4

tt64 emulator API for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::host;
use super::vm;

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub enum Parent {
    VM(*mut vm::VM),
    Host(host::Host),
}

impl Parent {
    pub fn from_vm(vm: &mut vm::VM) -> Self {
        Parent::VM(vm)
    }

    pub fn from_host(host: &host::Host) -> Self {
        Parent::Host(host.clone())
    }
}