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

Method new

src/canonicalize.rs:136–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135impl<'op> OperatorPair<'op> {
136 fn new() -> OperatorPair<'op> {
137 return OperatorPair{
138 ch: "illegal", // value 'illegal' used only in debugging, if then
139 op: &ILLEGAL_OPERATOR_INFO, // ILLEGAL_OPERATOR_INFO avoids using <Option>
140 };
141 }
142}
143
144// OperatorVersions is a convenient data structure when looking to see whether the operator should be prefix, infix, or postfix.

Callers

nothing calls this directly

Calls 5

create_mathml_elementFunction · 0.85
is_prefixMethod · 0.80
is_infixMethod · 0.80
is_postfixMethod · 0.80
pref_to_stringMethod · 0.80

Tested by

no test coverage detected