(value: str)
| 133 | |
| 134 | |
| 135 | def _rustdoc_path_part(value: str) -> str: |
| 136 | value = value.replace("!", "-bang") |
| 137 | value = re.sub(r"[^A-Za-z0-9_-]+", "-", value) |
| 138 | return value.strip("-").lower() or "item" |
| 139 | |
| 140 | |
| 141 | def _crate_slug(crate_name: str) -> str: |