Skip to main content Crate rspack_paths Copy item path Source ArcPath ResolverPath A path returned in crate::ResolveContext dependencies, paired with a
precomputed FxHash of the path bytes. Utf8Components An iterator over the Utf8Component s of a Utf8Path . Utf8Path A slice of a UTF-8 path (akin to str ). Utf8PathBuf An owned, mutable UTF-8 path (akin to String ). Utf8Component A single component of a path. Utf8Prefix Windows path prefixes, e.g., C: or \\server\share. AssertUtf8 hash_path Hash a path with FxHasher matching the bytes-on-unix optimization used by
rspack_resolver. Keeping these in sync lets ArcPath::from_parts accept
a hash precomputed inside the resolver without rehashing here. ArcPathDashMap A standard DashMap using ArcPath as the key type with a custom Hasher
that just uses the precomputed hash for speed instead of calculating it. ArcPathDashSet A standard DashSet using ArcPath as the key type with a custom Hasher
that just uses the precomputed hash for speed instead of calculating it. ArcPathIndexSet A standard IndexSet using ArcPath as the key type with a custom Hasher
that just uses the precomputed hash for speed instead of calculating it. ArcPathMap A standard HashMap using ArcPath as the key type with a custom Hasher
that just uses the precomputed hash for speed instead of calculating it. ArcPathSet A standard HashSet using ArcPath as the key type with a custom Hasher
that just uses the precomputed hash for speed instead of calculating it. ArcResolverPathSet A HashSet<ResolverPath, IdentityHasher> that preserves the FxHash
precomputed inside rspack_resolver. Inserting and looking up entries
here only costs a write_u64 instead of hashing the full absolute path.