Skip to content

Derive a parser for delimited data #36

Description

@tsheinen

I'd like to be able to able to parse delimited data -- for example 1, 2, 3, 4, 5

I envision this looking something like

#[derive(Debug,Display,FromStr)]
struct Container {
   #[from_str(delimiter=", ")]
   numbers: Vec<usize>
}

If I have time over the next couple days i'll try and PR this; otherwise thought i'd mention it to see if this would be useful to other people (or if im dumb and this is already doable lol)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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