blob: ee49896e55a637d8302221823c159650181421ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
use crate::error::Result;
/// 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;
fn build_collection(&self, value_desc: &str) -> Result<Self::Output>;
}
|