summaryrefslogtreecommitdiffstats
path: root/src/value_builder.rs
blob: 5418ee619a7e79c80c8fbfd735cb00630d4b846a (plain)
1
2
3
4
5
6
7
8
/// A thing that can build a value by interactively asking the user a question
pub trait ValueBuilder {
    type Output: Sized;
    type Error: Sized;

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