Trait quoted_string::spec::QuotingClassifier [−][src]
pub trait QuotingClassifier {
fn classify_for_quoting(pcp: PartialCodePoint) -> QuotingClass;
}Type to provide a quoting classification method.
This is normally a zero-sized type.
Required Methods
fn classify_for_quoting(pcp: PartialCodePoint) -> QuotingClass
Returns the "class" the partial code point belongs too
This is either QTest, NeedsQuoting or Invalid.
As this function accepts PartialCodePoint it can not
differ between different utf-8 characters, which happens
to be fine for all supported quoting use cases.
Implementors
impl QuotingClassifier for TestSpec