tiny.choir.ir.interfaces.AttributeArrayInterface
Defined in ir.interfaces.
API (6)
Actions
Public operations.
Types and contracts
Public types and contracts.
Values and defaults
Public values and defaults.
Source
Source: lib/choir/src/core/interfaces/attrs.zig:71
zig
pub const AttributeArrayInterface = struct { pub const interface_name = "ir.interface.attribute_array"; pub const id: InterfaceId = base.interfaceId(interface_name); pub const VTable = struct { getCount: *const fn (attr_ptr: *const anyopaque) usize, getElement: *const fn (attr_ptr: *const anyopaque, index: usize) ?IrAttribute, }; pub fn entry(vtable: *const VTable) InterfaceEntry { return .{ .id = id, .vtable = vtable }; } pub fn vtableFor( comptime getCount: *const fn (attr_ptr: *const anyopaque) usize, comptime getElement: *const fn (attr_ptr: *const anyopaque, index: usize) ?IrAttribute, ) *const VTable { return &.{ .getCount = getCount, .getElement = getElement, }; } pub fn entryFor( comptime getCount: *const fn (attr_ptr: *const anyopaque) usize, comptime getElement: *const fn (attr_ptr: *const anyopaque, index: usize) ?IrAttribute, ) InterfaceEntry { return entry(vtableFor(getCount, getElement)); }};Source: lib/choir/src/core/interfaces/root.zig:29
zig
pub const AttributeArrayInterface = attrs.AttributeArrayInterface;Also reachable as
backends.wasm.emission.module_encoding.common.ir.interfaces.AttributeArrayInterface.
Audit
| Definitions | 7 |
|---|---|
| Public names | 14 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |