Format a hash in dim style. Use this for change hashes, state hashes, or other identifiers. # Arguments `text` - The hash to format # Returns A styled object that displays in dim when printed. # Example ```rust,ignore println!("Change: {}", colors::hash("ABC123DEF456...")); ```
(text: D)
| 381 | /// println!("Change: {}", colors::hash("ABC123DEF456...")); |
| 382 | /// ``` |
| 383 | pub fn hash<D: std::fmt::Display>(text: D) -> StyledObject<D> { |
| 384 | style(text).dim() |
| 385 | } |
| 386 | |
| 387 | /// Format a view/branch name in cyan and bold. |
| 388 | /// |
no outgoing calls