Format an author name in default style. Use this for displaying author names in logs and history. # Arguments `text` - The author name to format # Returns A styled object (currently unstyled for readability). # Example ```rust,ignore println!("Author: {}", colors::author("Jane Doe ")); ```
(text: D)
| 444 | /// println!("Author: {}", colors::author("Jane Doe <jane@example.com>")); |
| 445 | /// ``` |
| 446 | pub fn author<D: std::fmt::Display>(text: D) -> StyledObject<D> { |
| 447 | style(text) |
| 448 | } |
| 449 | |
| 450 | // Semantic Colors |
| 451 |
no outgoing calls