libmwemu 0.24.5

x86 32/64bits and system internals emulator, for securely emulating malware and other stuff.
Documentation
use serde::{Deserialize, Serialize};

#[derive(Clone, Serialize, Deserialize)]
pub struct Eflags {
    pub rf: bool,
    pub vm: bool,
    pub ac: bool,
    pub vif: bool,
    pub id: bool,
}

impl Default for Eflags {
    fn default() -> Self {
        Self::new()
    }
}

impl Eflags {
    pub fn new() -> Eflags {
        Eflags {
            rf: false,
            vm: false,
            ac: false,
            vif: false,
            id: false,
        }
    }
}