pub fn link<T, Uri>(value: T, uri: Uri) -> StyledLink<T, Uri>Expand description
Create a styled link.
See Stylize for available styling options.
Examples found in repository?
examples/demo.rs (line 19)
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
fn main() {
let hello = style("Hello").bold().red().on_blue();
println!("{}", lazy_format!("{:b}", 12));
let world = style_format!("Wor{}ld", style_format!("he{}he", style("haha")).blue())
.cyan()
.reverse();
println!("{hello}, {world}!");
println!("{:?}", world.style);
println!("{:?}", world.to_string());
println!("{}", style("strikethrough").strikethrough());
println!("{}", link("Google", "https://google.com").bold().green());
println!("{}", style("Hello").underline_colored(48));
}