Enum cranelift_module::Init[][src]

pub enum Init {
    Uninitialized,
    Zeros {
        size: usize,
    },
    Bytes {
        contents: Box<[u8]>,
    },
}

This specifies how data is to be initialized.

Variants

This indicates that no initialization has been specified yet.

Initialize the data with all zeros.

Fields of Zeros

The size of the data.

Initialize the data with the specified contents.

Fields of Bytes

The contents, which also implies the size of the data.

Methods

impl Init
[src]

Return the size of the data to be initialized.

Trait Implementations

impl PartialEq for Init
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Init
[src]

impl Debug for Init
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Init

impl Sync for Init