pub fn trailers_valid(headers: &[Header]) -> Res<()> {
    for header in headers {
        if header.name().starts_with(':') {
            return Err(Error::InvalidHeader);
        }
    }
    Ok(())
}
/// Checks if trailers are well formed, i.e. pseudo headers are not
/// allowed in trailers.
/// # Errors
/// Returns an error if trailers are not well formed.
Checks if trailers are well formed, i.e. pseudo headers are not
allowed in trailers.
Checks if trailers are well formed i . e . pseudo headers are not allowed in trailers .
pub fn trailers_valid(headers: &[Header]) -> Res<()> {
    for header in headers {
        if header.name().starts_with(':') {
            return Err(Error::InvalidHeader);
        }
    }
    Ok(())
}
pub fn trailers_valid ( headers : & [ Header ] ) -> Res < ( ) > { for header in headers { if header . name ( ) . starts_with ( ':' ) { return Err ( Error :: InvalidHeader ) ; } } Ok ( ( ) ) }
Checks if trailers are well formed, i.e.
Checks if trailers are well formed i . e .
headers
&[Header]
errors
Returns an error if trailers are not well formed.
Returns an error if trailers are not well formed .