Function isFloatingPoint [src]

Prototype

pub fn isFloatingPoint(self: Type) bool

Parameters

self: Type

Source

pub fn isFloatingPoint(self: Type) bool { return switch (self) { .half, .bfloat, .float, .double, .fp128, .x86_fp80, .ppc_fp128 => true, else => false, }; }