buildstructor 0.6.0

Macro to derive a builder from a constructor function.
Documentation
use buildstructor::buildstructor;

pub struct IntoType {
    simple: String,
}

#[buildstructor]
impl IntoType {
    #[builder]
    fn new<T: Into<String>>(simple: T) -> IntoType {
        IntoType {
            simple: simple.into(),
        }
    }
}

fn main() {
    let into = IntoType::builder().simple("hi").build();
    assert_eq!(into.simple, "hi");
}