Enum cranelift_module::Init[][src]

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

This specifies how data is to be initialized.

Variants

Uninitialized

This indicates that no initialization has been specified yet.

Zeros

Initialize the data with all zeros.

Show fields

Fields of Zeros

size: usize

The size of the data.

Bytes

Initialize the data with the specified contents.

Show fields

Fields of Bytes

contents: Box<[u8]>

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

Implementations

Return the size of the data to be initialized.

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.