[][src]Enum cranelift_module::Init

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

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.

Fields of Zeros

size: usize

The size of the data.

Bytes

Initialize the data with the specified contents.

Fields of Bytes

contents: Box<[u8]>

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

Methods

impl Init[src]

pub fn size(&self) -> usize[src]

Return the size of the data to be initialized.

Trait Implementations

impl Debug for Init[src]

impl PartialEq<Init> for Init[src]

impl Eq for Init[src]

Auto Trait Implementations

impl Send for Init

impl Sync for Init

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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