Function changeScalar [src]

Prototype

pub fn changeScalar(self: Type, scalar: Type, builder: *Builder) Allocator.Error!Type

Parameters

self: Typescalar: Typebuilder: *Builder

Source

pub fn changeScalar(self: Type, scalar: Type, builder: *Builder) Allocator.Error!Type { try builder.ensureUnusedTypeCapacity(1, Type.Vector, 0); return self.changeScalarAssumeCapacity(scalar, builder); }