summaryrefslogtreecommitdiffstats
path: root/src/collection_builder.rs
blob: 70c1ae31f6673ca7f4a3f2980fade338fe7c7c88 (plain)
1
2
3
4
5
6
7
8
9
10
/// A collection type that can be built interactively
///
/// That is, for example, a Vec<_>, a HashMap<_, _> or a struct
pub trait CollectionBuilder {
    type Output: Sized;
    type Error: Sized;

    fn build_collection(&self, value_desc: &str) -> Result<Self::Output, Self::Error>;
}