Skip to content

Instantly share code, notes, and snippets.

const builtin = @import("builtin");
const TypeId = builtin.TypeId;
const TypeInfo = builtin.TypeInfo;
const std = @import("std");
const mem = std.mem;
const assert = std.debug.assert;
// @TODO Add const SelfType variant, perhaps SelfType(bool)? (to actually distinguish between const and non const methods)
pub const SelfType = *@OpaqueType();