pub trait QuotingClassifier {
// Required method
fn classify_for_quoting(pcp: PartialCodePoint) -> QuotingClass;
}
Expand description
Type to provide a quoting classification method.
This is normally a zero-sized type.
Required Methods§
Sourcefn classify_for_quoting(pcp: PartialCodePoint) -> QuotingClass
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.