Struct libmathcat::speech::SpeechRulesWithContext
source · pub struct SpeechRulesWithContext<'c, 's: 'c, 'm: 'c> {
pub inside_spell: bool,
/* private fields */
}Expand description
SpeechRulesWithContext encapsulates a named group of speech rules (e.g, “ClearSpeak”)
along with the preferences to be used for speech.
Because speech rules can define variables, there is also a context that is carried with them
Fields§
§inside_spell: boolImplementations§
source§impl<'c, 's: 'c, 'r, 'm: 'c> SpeechRulesWithContext<'c, 's, 'm>
impl<'c, 's: 'c, 'r, 'm: 'c> SpeechRulesWithContext<'c, 's, 'm>
We track three different lifetimes: ’c – the lifetime of the context and mathml ’s – the lifetime of the speech rules (which is static) ’r – the lifetime of the reference (this seems to be key to keep the rust memory checker happy)