TextBuilder

Trait TextBuilder 

Source
pub trait TextBuilder {
    type TextIter<'a, Word: Iterator<Item = char>>: TextIter
       where Self: 'a;

    // Required methods
    fn build_text<'a, Word: Iterator<Item = char>>(
        &'a self,
        word: Word,
        options: BuildTextOptions,
    ) -> Self::TextIter<'a, Word>;
    fn has_replacement(&self, left: Option<char>, right: Option<char>) -> bool;
}

Required Associated Types§

Source

type TextIter<'a, Word: Iterator<Item = char>>: TextIter where Self: 'a

Required Methods§

Source

fn build_text<'a, Word: Iterator<Item = char>>( &'a self, word: Word, options: BuildTextOptions, ) -> Self::TextIter<'a, Word>

Source

fn has_replacement(&self, left: Option<char>, right: Option<char>) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§