Italic

Trait Italic 

Source
pub trait Italic {
    // Required method
    fn to_italic(&self) -> String;
}
Expand description

An extension trait for italic transformations.

Required Methods§

Source

fn to_italic(&self) -> String

Transforms the given text into its italic variant.

§Example
use markdown_composer::transforms::Italic;

let text = "Italic text";
let inline = text.to_italic();
assert_eq!(inline, "*Italic text*");

Implementors§

Source§

impl<T> Italic for T
where T: AsRef<str>,