Function hashName [src]

Prototype

pub fn hashName(parent_hash: SrcHash, sep: []const u8, name: []const u8) SrcHash

Parameters

parent_hash: SrcHashsep: []const u8name: []const u8

Source

pub fn hashName(parent_hash: SrcHash, sep: []const u8, name: []const u8) SrcHash { var out: SrcHash = undefined; var hasher = SrcHasher.init(.{}); hasher.update(&parent_hash); hasher.update(sep); hasher.update(name); hasher.final(&out); return out; }