Skip to main content

impl_trait

Function impl_trait 

Source
pub fn impl_trait(
    attrs: impl IntoIterator<Item = Attr>,
    is_unsafe: bool,
    trait_gen_params: Option<GenericParamList>,
    trait_gen_args: Option<GenericArgList>,
    type_gen_params: Option<GenericParamList>,
    type_gen_args: Option<GenericArgList>,
    is_negative: bool,
    path_type: Type,
    ty: Type,
    trait_where_clause: Option<WhereClause>,
    ty_where_clause: Option<WhereClause>,
    body: Option<AssocItemList>,
) -> Impl