Macro infer_construct

Source
macro_rules! infer_construct {
    ($($tt: tt)*) => { ... };
}
Expand description

A standard constructor that uses InferInto.

InferInto is inference based and will fail if multiple implementations of the same conversion exists.

ยงSyntax

infer_construct! {
    Student {
        name: "Timmy",
        age: 10,
        father : {
            name: "Tommy",
            age: 35,
        }
    }
}