Skip to content

build_method into type parameters #104

@rksm

Description

@rksm

Hello and thank you for this amazing project! It makes builder type state so much easier to use, it's a joy!

I've come across a small issue. I have

#[derive(typed_builder::TypedBuilder)]
#[builder(build_method(into = Result<Index>))]
pub struct IndexBuilder { ... }

impl From<IndexBuilder> for Result<Index> {
    fn from(value: IndexBuilder) -> Self { ... }
}

into = Result<Index> is not parsed correctly as apparently the macro does not expect type params. I can work around this with type IndexResult = Result<Index>; but it would be cool if this could be supported directly.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions