enumstd.builtin.AddressSpace.Context[src]

The places where a user can specify an address space attribute

Fields

function

A function is specified to be placed in a certain address space.

variable

A (global) variable is specified to be placed in a certain address space. In contrast to .constant, these values (and thus the address space they will be placed in) are required to be mutable.

constant

A (global) constant value is specified to be placed in a certain address space. In contrast to .variable, values placed in this address space are not required to be mutable.

pointer

A pointer is ascripted to point into a certain address space.

Source Code

Source code
pub const Context = enum {
    /// A function is specified to be placed in a certain address space.
    function,
    /// A (global) variable is specified to be placed in a certain address space.
    /// In contrast to .constant, these values (and thus the address space they will be
    /// placed in) are required to be mutable.
    variable,
    /// A (global) constant value is specified to be placed in a certain address space.
    /// In contrast to .variable, values placed in this address space are not required to be mutable.
    constant,
    /// A pointer is ascripted to point into a certain address space.
    pointer,
}