Expand description
Only utils/extensions for the rust std library.
Traits§
Functions§
- absolute_
path_ to_ relative_ slash - Absolute
path→ slash-separated path relative tocwd(stable ids / diagnostics). - absolutize_
path_ buf - Ensure an owned path is absolute before using it as sugar_path 3’s explicit cwd.
- normalize_
path_ buf_ to_ slash - Normalize an owned path, then consume it into a
/-separated UTF-8 string. - path_
buf_ to_ slash - Consume a
PathBufinto a/-separated UTF-8 string (known-UTF-8 invariant). - pretty_
type_ name - relative_
path_ as_ js_ specifier - Like
relative_path_to_slash, but formats a JS-style relative specifier: - relative_
path_ to_ slash - Lexical path from
basetotargetas a/-separated UTF-8 string. - representative_
file_ name_ for_ preserve_ modules - The first one is for chunk name, the second element is used for generate absolute file name
- strip_
path_ prefix_ to_ slash