pub(crate) trait TryFromValues: Sized {
// Required method
fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>
where Self: Sized,
I: Iterator<Item = &'i HeaderValue>;
}Expand description
A helper trait for use when deriving Header.
Required Methods§
Sourcefn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>
fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>
Try to convert from the values into an instance of Self.
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.