pub fn as_u64(&self) -> u64 {
        let mut val: u64 = 0;

        let minor_version = u64::from(self.minfw.minor);
        let mut major_version = u64::from(self.minfw.major);

        /*
         * According to the SNP firmware spec, bit 1 of the policy flags is reserved and must
         * always be set to 1. Rather than passing this responsibility off to callers, set this bit
         * every time an ioctl is issued to the kernel.
         */
        let flags = self.flags.bits | 0b10;
        let mut flags_64 = u64::from(flags);

        major_version <<= 8;
        flags_64 <<= 16;

        val |= minor_version;
        val |= major_version;
        val |= flags_64;
        val &= 0x00FFFFFF;

        val
    }
/// Convert a Policy to it's u64 counterpart.
Convert a Policy to it's u64 counterpart.
Convert a Policy to it ' s u64 counterpart .
pub fn as_u64(&self) -> u64 {
        let mut val: u64 = 0;
        let minor_version = u64::from(self.minfw.minor);
        let mut major_version = u64::from(self.minfw.major);
        /*
         * According to the SNP firmware spec, bit 1 of the policy flags is reserved and must
         * always be set to 1. Rather than passing this responsibility off to callers, set this bit
         * every time an ioctl is issued to the kernel.
         */
        let flags = self.flags.bits | 0b10;
        let mut flags_64 = u64::from(flags);
        major_version <<= 8;
        flags_64 <<= 16;
        val |= minor_version;
        val |= major_version;
        val |= flags_64;
        val &= 0x00FFFFFF;
        val
    }
pub fn as_u64 ( & self ) -> u64 { let mut val : u64 = 0 ; let minor_version = u64 :: from ( self . minfw . minor ) ; let mut major_version = u64 :: from ( self . minfw . major ) ; /*
         * According to the SNP firmware spec, bit 1 of the policy flags is reserved and must
         * always be set to 1. Rather than passing this responsibility off to callers, set this bit
         * every time an ioctl is issued to the kernel.
         */ let flags = self . flags . bits | 0b10 ; let mut flags_64 = u64 :: from ( flags ) ; major_version <<= 8 ; flags_64 <<= 16 ; val |= minor_version ; val |= major_version ; val |= flags_64 ; val &= 0x00FFFFFF ; val }
Convert a Policy to it's u64 counterpart.
Convert a Policy to it ' s u64 counterpart .
&self