Function structConst [src]
Prototype
pub fn structConst(self: *Builder, ty: Type, vals: []const Constant) Allocator.Error!Constant
Parameters
self: *Builder
ty: Type
vals: []const Constant
Source
pub fn structConst(self: *Builder, ty: Type, vals: []const Constant) Allocator.Error!Constant {
try self.ensureUnusedConstantCapacity(1, Constant.Aggregate, vals.len);
return self.structConstAssumeCapacity(ty, vals);
}