BindExt

Trait BindExt 

Source
pub trait BindExt<SI: SyntaxInterpreter> {
    // Required method
    fn bind(&self, interpreter: SI) -> Generator<'_, SI>;
}
Expand description

This trait exists to provide syntactic sugar to create the generator builder from str:

"/_command <str(userId)>"
    .bind(SomeInterpreter)
    .prelude(..)
    .postlude(..)
    .generate();

Required Methods§

Source

fn bind(&self, interpreter: SI) -> Generator<'_, SI>

Implementations on Foreign Types§

Source§

impl<SI: SyntaxInterpreter> BindExt<SI> for str

Source§

fn bind(&self, interpreter: SI) -> Generator<'_, SI>

Implementors§