Function arrayType [src]
Prototype
pub fn arrayType(self: *Builder, len: u64, child: Type) Allocator.Error!Type
Parameters
self: *Builder
len: u64
child: Type
Source
pub fn arrayType(self: *Builder, len: u64, child: Type) Allocator.Error!Type {
comptime assert(@sizeOf(Type.Array) >= @sizeOf(Type.Vector));
try self.ensureUnusedTypeCapacity(1, Type.Array, 0);
return self.arrayTypeAssumeCapacity(len, child);
}