[][src]Struct quake3_qvm::QVM

pub struct QVM { /* fields omitted */ }

A Quake 3 virtual machine image.

A VM consists of instructions and data, where data is separated into

  • word-sized data
  • byte-sized data (LIT)
  • uninitialized data (BSS)

Implementations

impl QVM[src]

pub fn new(
    code: Vec<Instruction>,
    data: Vec<u32>,
    lit: Vec<u8>,
    bss_length: u32
) -> Result<QVM>
[src]

Creates a new VM instance.

Errors

lorem ipsum

pub fn instructions(&self) -> &Vec<Instruction>[src]

Returns the instructions of the code segment.

pub fn data(&self) -> &Vec<u32>[src]

Returns the word-sized data of the data segment.

pub fn lit(&self) -> &Vec<u8>[src]

Returns the byte-sized data of the LIT segment.

pub fn bss_length(&self) -> u32[src]

Returns the length of the uninitialized BSS segment.

Trait Implementations

impl Debug for QVM[src]

impl PartialEq<QVM> for QVM[src]

impl StructuralPartialEq for QVM[src]

Auto Trait Implementations

impl RefUnwindSafe for QVM

impl Send for QVM

impl Sync for QVM

impl Unpin for QVM

impl UnwindSafe for QVM

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.