pub trait TreeOrString<'c, 'm: 'c, T> {
    fn from_element(e: Element<'m>) -> Result<T>;
fn from_string(s: String, doc: Document<'m>) -> Result<T>;
fn replace_tts<'s: 'c, 'r>(
        tts: &TTS,
        command: &TTSCommandRule,
        prefs: &PreferenceManager,
        rules_with_context: &'r mut SpeechRulesWithContext<'c, 's, 'm>,
        mathml: Element<'c>
    ) -> Result<T>;
fn replace<'s: 'c, 'r>(
        ra: &ReplacementArray,
        rules_with_context: &'r mut SpeechRulesWithContext<'c, 's, 'm>,
        mathml: Element<'c>
    ) -> Result<T>;
fn replace_nodes<'s: 'c, 'r>(
        rules: &'r mut SpeechRulesWithContext<'c, 's, 'm>,
        nodes: Vec<Node<'c>>,
        mathml: Element<'c>
    ) -> Result<T>;
fn highlight_braille(braille: T, highlight_style: String) -> T; }
Expand description

As the name says, TreeOrString is either a Tree (Element) or a String It is used to share code during pattern matching

Required methods

Implementations on Foreign Types

Implementors