Functions

fn TraitFn(type) bool

No documentation provided.

fn hasDecls(comptime T: type, comptime names: anytype) bool

No documentation provided.

fn hasField(comptime name: []const u8) TraitFn

No documentation provided.

fn hasFields(comptime T: type, comptime names: anytype) bool

No documentation provided.

fn hasFn(comptime name: []const u8) TraitFn

No documentation provided.

fn hasFunctions(comptime T: type, comptime names: anytype) bool

No documentation provided.

fn hasUniqueRepresentation(comptime T: type) bool

True if every value of the type T has a unique bit pattern representing it. I…

True if every value of the type T has a unique bit pattern representing it. In other words, T has no unused bits and no padding.

fn is(comptime id: std.builtin.TypeId) TraitFn

No documentation provided.

fn isConstPtr(comptime T: type) bool

No documentation provided.

fn isContainer(comptime T: type) bool

No documentation provided.

fn isExtern(comptime T: type) bool

No documentation provided.

fn isFloat(comptime T: type) bool

No documentation provided.

fn isIndexable(comptime T: type) bool

No documentation provided.

fn isIntegral(comptime T: type) bool

No documentation provided.

fn isManyItemPtr(comptime T: type) bool

No documentation provided.

fn isNumber(comptime T: type) bool

No documentation provided.

fn isPacked(comptime T: type) bool

No documentation provided.

fn isPtrTo(comptime id: std.builtin.TypeId) TraitFn

No documentation provided.

fn isSignedInt(comptime T: type) bool

No documentation provided.

fn isSingleItemPtr(comptime T: type) bool

No documentation provided.

fn isSlice(comptime T: type) bool

No documentation provided.

fn isSliceOf(comptime id: std.builtin.TypeId) TraitFn

No documentation provided.

fn isTuple(comptime T: type) bool

No documentation provided.

fn isUnsignedInt(comptime T: type) bool

No documentation provided.

fn isZigString(comptime T: type) bool

Returns true if the passed type will coerce to []const u8. Any of the following…

Returns true if the passed type will coerce to []const u8. Any of the following are considered strings:

[]const u8, [:S]const u8, *const [N]u8, *const [N:S]u8,
[]u8, [:S]u8, *[:S]u8, *[N:S]u8.

These types are not considered strings:

u8, [N]u8, [*]const u8, [*:0]const u8,
[*]const [N]u8, []const u16, []const i8,
*const u8, ?[]const u8, ?*const [N]u8.
fn multiTrait(comptime traits: anytype) TraitFn

No documentation provided.