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.
Zig › compiler/ › Maker/ › Step/ › Compile.zig › ModuleListContext
ModuleListContext
Compile.ModuleListContext
const ModuleListContext = struct
File
Code
const ModuleListContext = struct {
pub fn eql (ctx : @This (), a : ModuleList , b : ModuleList ) bool {
_ = ctx ;
return a .keys ()[0 ] == b .keys ()[0 ];
}
pub fn hash (ctx : @This (), key : ModuleList ) u32 {
_ = ctx ;
return std .hash .int (@backingInt (key .keys ()[0 ]));
}
const Adapter = struct {
pub fn eql (ctx : @This (), a : Configuration .Module .Index , b : ModuleList , b_index : usize ) bool {
_ = ctx ;
_ = b_index ;
return a == b .keys ()[0 ];
}
pub fn hash (ctx : @This (), key : Configuration .Module .Index ) u32 {
_ = ctx ;
return std .hash .int (@backingInt (key ));
}
};
}