fn encoder_trait_bounds(mut generics: Generics) -> Generics {
    for param in &mut generics.params {
        if let GenericParam::Type(type_param) = param {
            type_param.bounds.push(parse_quote!(bin_layout::Encoder));
        }
    }
    generics
}
/// Add a bound `T: Encoder` to every type parameter T.
Add a bound `T: Encoder` to every type parameter T.
Add a bound ` T : Encoder ` to every type parameter T .
fn encoder_trait_bounds(mut generics: Generics) -> Generics {
    for param in &mut generics.params {
        if let GenericParam::Type(type_param) = param {
            type_param.bounds.push(parse_quote!(bin_layout::Encoder));
        }
    }
    generics
}
fn encoder_trait_bounds ( mut generics : Generics ) -> Generics { for param in & mut generics . params { if let GenericParam :: Type ( type_param ) = param { type_param . bounds . push ( parse_quote ! ( bin_layout Encoder ) ) ; } } generics }
Add a bound `T: Encoder` to every type parameter T.
Add a bound ` T : Encoder ` to every type parameter T .
generics
Generics
generics
Generics