blob: 3535ee2ee184488675813d9a9402476844d4e009 (
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) -> Result<Self::Output, Self::Error>;
}
|