pub trait AsHeaderName {
// Required method
fn as_lower(&self) -> Cow<'_, str>;
}Expand description
Trait for values that can be used as a lookup key against a HeaderMap.
Implementations exist for HeaderName and &HeaderName (zero-allocation,
reusing the cached lowercase form), and for &str / String /
&String (lowercased on the fly when needed).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".