pub trait ContainsUtf8 {
// Required method
fn contains_utf8(&self) -> bool;
}Expand description
The contains_utf8 function returns whether a value implementing this trait
uses non-ascii UTF-8 text added by RFC 6532.
This is useful to distinguish between headers bodies or other tokens that require RFC 6532 and those that do not.
Required Methods§
fn contains_utf8(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".