pub const Match = struct
pub const Match = struct { /// Relative to the watched directory, the file path that triggers this /// match. basename: []const u8, /// The step to re-run when file corresponding to `basename` is changed. step_index: Configuration.Step.Index, pub const Context = struct { pub fn hash(self: Context, a: Match) u32 { _ = self; var hasher = Hash.init(@backingInt(a.step_index)); hasher.update(a.basename); return @truncate(hasher.final()); } pub fn eql(self: Context, a: Match, b: Match, b_index: usize) bool { _ = self; _ = b_index; return a.step_index == b.step_index and std.mem.eql(u8, a.basename, b.basename); } }; }