You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this due to something with the generics, or specific to the collections (and specific types listed)?
Can buildstructor support that same feature on a non-collection type?:
// Either of these?structPair<X,Y>(X,Y);structPair<T>(T,T);// fn new(pair: Pair<String, String>) -> Selfbuilder().pair("hello","world")
Or are you restricted to a tuple input vs separate explicit args?:
// Manual construction of `Pair` type required:builder().pair(("hello","world"));builder().pair_x("hello").pair_y("world").build();// Awkward via separate builder:builder().pair(Pair::builder().x("hello").y("world").build()).build();
The text was updated successfully, but these errors were encountered:
The
crates.io
docs don't touch on this example, but I see methods that have more than a single arg supported:buildstructor/examples/collections.rs
Lines 27 to 38 in ae0a5a4
Is this due to something with the generics, or specific to the collections (and specific types listed)?
Can
buildstructor
support that same feature on a non-collection type?:Or are you restricted to a tuple input vs separate explicit args?:
The text was updated successfully, but these errors were encountered: