structstd.Build.Cache.Manifest.FilesContext[src]

Functions

Functionhash[src]

pub fn hash(fc: FilesContext, file: File) u32

Parameters

Source Code

Source code
pub fn hash(fc: FilesContext, file: File) u32 {
    _ = fc;
    return file.prefixed_path.hash();
}

Functioneql[src]

pub fn eql(fc: FilesContext, a: File, b: File, b_index: usize) bool

Parameters

a: File
b: File
b_index: usize

Source Code

Source code
pub fn eql(fc: FilesContext, a: File, b: File, b_index: usize) bool {
    _ = fc;
    _ = b_index;
    return a.prefixed_path.eql(b.prefixed_path);
}

Source Code

Source code
pub const FilesContext = struct {
    pub fn hash(fc: FilesContext, file: File) u32 {
        _ = fc;
        return file.prefixed_path.hash();
    }

    pub fn eql(fc: FilesContext, a: File, b: File, b_index: usize) bool {
        _ = fc;
        _ = b_index;
        return a.prefixed_path.eql(b.prefixed_path);
    }
}