[][src]Trait markdown_composer::transforms::Inline

pub trait Inline {
    fn to_inline(&self) -> String;
}

An extension trait for inline transformations.

Required methods

fn to_inline(&self) -> String

Transforms the given text into an inline code block.

Example

use markdown_composer::transforms::Inline;

let text = "Inline text";
let inline = text.to_inline();
assert_eq!(inline, "`Inline text`");
Loading content...

Implementors

impl<T> Inline for T where
    T: AsRef<str>, 
[src]

Loading content...