path_equals() — tailwindcss Function Reference
Architecture documentation for the path_equals() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 633cf0ee_78d6_12f4_349d_a7fafa78e65a["path_equals()"] 8031325b_dcd2_8c49_70e7_46191ce03a79["walk.rs"] 633cf0ee_78d6_12f4_349d_a7fafa78e65a -->|defined in| 8031325b_dcd2_8c49_70e7_46191ce03a79 d58582e3_a53c_e31d_6fdd_178c8966b65f["skip_entry()"] d58582e3_a53c_e31d_6fdd_178c8966b65f -->|calls| 633cf0ee_78d6_12f4_349d_a7fafa78e65a dc874db4_e8a3_5292_d49c_2245b8b18f45["generate_work()"] dc874db4_e8a3_5292_d49c_2245b8b18f45 -->|calls| 633cf0ee_78d6_12f4_349d_a7fafa78e65a 64fbd903_367e_e081_81fa_bf44b0efee21["ino()"] 633cf0ee_78d6_12f4_349d_a7fafa78e65a -->|calls| 64fbd903_367e_e081_81fa_bf44b0efee21 3e377f06_9d90_15fa_2558_a61cfabf01ce["is_stdin()"] 633cf0ee_78d6_12f4_349d_a7fafa78e65a -->|calls| 3e377f06_9d90_15fa_2558_a61cfabf01ce 275ce747_52cf_7193_9f0d_2cf3bab3ea9c["from_path()"] 633cf0ee_78d6_12f4_349d_a7fafa78e65a -->|calls| 275ce747_52cf_7193_9f0d_2cf3bab3ea9c 934d114d_964b_414a_2b41_82e8174b7c3d["path()"] 633cf0ee_78d6_12f4_349d_a7fafa78e65a -->|calls| 934d114d_964b_414a_2b41_82e8174b7c3d style 633cf0ee_78d6_12f4_349d_a7fafa78e65a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 1964–1983
fn path_equals(dent: &DirEntry, handle: &Handle) -> Result<bool, Error> {
#[cfg(unix)]
fn never_equal(dent: &DirEntry, handle: &Handle) -> bool {
dent.ino() != Some(handle.ino())
}
#[cfg(not(unix))]
fn never_equal(_: &DirEntry, _: &Handle) -> bool {
false
}
// If we know for sure that these two things aren't equal, then avoid
// the costly extra stat call to determine equality.
if dent.is_stdin() || never_equal(dent, handle) {
return Ok(false);
}
Handle::from_path(dent.path())
.map(|h| &h == handle)
.map_err(|err| Error::Io(err).with_path(dent.path()))
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does path_equals() do?
path_equals() is a function in the tailwindcss codebase, defined in crates/ignore/src/walk.rs.
Where is path_equals() defined?
path_equals() is defined in crates/ignore/src/walk.rs at line 1964.
What does path_equals() call?
path_equals() calls 4 function(s): from_path, ino, is_stdin, path.
What calls path_equals()?
path_equals() is called by 2 function(s): generate_work, skip_entry.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free