Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

QualTypeHashContext

Translator.QualTypeHashContext
pub const QualTypeHashContext = struct

File

lib/compiler/translate-c/Translator.zig:50

Code

pub const QualTypeHashContext = struct {
    pub fn hash(ctx: QualTypeHashContext, key: QualType) u64 {
        const auto_hash = std.hash_map.getAutoHashFn(QualType, QualTypeHashContext);
        return auto_hash(ctx, key.unqualified());
    }

    pub fn eql(ctx: QualTypeHashContext, a: QualType, b: QualType) bool {
        const auto_eql = std.hash_map.getAutoEqlFn(QualType, QualTypeHashContext);
        return auto_eql(ctx, a.unqualified(), b.unqualified());
    }
}