MCPcopy Create free account
hub / github.com/daisy/MathCAT / get_num

Method get_num

src/tts.rs:195–200  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

193
194impl TTSCommandValue {
195 fn get_num(&self) -> f64 {
196 match self {
197 TTSCommandValue::Number(n) => return *n,
198 _ => panic!("Internal error: TTSCommandValue is not a number"),
199 }
200 }
201
202 fn get_string(&self) -> &String {
203 match self {

Callers 4

replace_stringMethod · 0.80
get_string_noneMethod · 0.80
get_string_sapi5Method · 0.80
get_string_ssmlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected