pub enum StrNorm {
Into(NormalForm),
Test(NormalForm),
}Expand description
Which of the two normalization functions a call asked for.
They are one kernel’s worth of thinking read two ways. NORMALIZE
answers the string a form asks for and IS NORMALIZED answers
whether the argument is that string already, so the second is the
first with a comparison in place of an answer, and the standard
defines it in exactly those words rather than through the quick
check properties.
What separates them here is where the answer goes. A normalized string is a string and lands in a vector; a test is a predicate and lands in a bitmap, the way a comparison does, so the two have separate entry points below and this says which is which for the compiler’s benefit.
Variants§
Implementations§
Source§impl StrNorm
impl StrNorm
Sourcepub fn form(self) -> NormalForm
pub fn form(self) -> NormalForm
The form the call named, which the statement wrote or which the standard’s default supplied.
Sourcepub fn answer_type(self, arg: PhysType) -> Option<PhysType>
pub fn answer_type(self, arg: PhysType) -> Option<PhysType>
The type the answers land in. Both want a string; one gives a string back and the other gives a truth value.