CommandSectionExt

Trait CommandSectionExt 

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

An extension trait for the CommandSection type that provides functionality for rendering the command section as a script string.

Required Methods§

Source

fn script(&self) -> String

Returns the command section as a script string.

This is a concatenation of all text parts and placeholders with common whitespace stripped (including whitespace common to the placeholders, which is typically ignored as semantically meaningless).

Implementations on Foreign Types§

Source§

impl CommandSectionExt for CommandSection

Source§

fn script(&self) -> String

Implementors§