Skip to main content

Inline

Trait Inline 

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

An extension trait for inline transformations.

Required Methods§

Source

fn to_inline(&self) -> String

Transforms the given text into an inline code block.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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