Format emphasized text in bold. Use this to emphasize important text. # Arguments `text` - The text to emphasize # Returns A styled object that displays in bold when printed. # Example ```rust,ignore println!("{} files changed", colors::emphasis(5)); ```
(text: D)
| 467 | /// println!("{} files changed", colors::emphasis(5)); |
| 468 | /// ``` |
| 469 | pub fn emphasis<D: std::fmt::Display>(text: D) -> StyledObject<D> { |
| 470 | style(text).bold() |
| 471 | } |
| 472 | |
| 473 | /// Format a command or code snippet in bold cyan. |
| 474 | /// |
no outgoing calls