Trait meap::parser::DefaultValue

source ·
pub trait DefaultValue {
    type Item;

    // Required methods
    fn default_value(&mut self) -> Self::Item;
    fn describe(&self) -> String;
}

Required Associated Types§

Required Methods§

source

fn default_value(&mut self) -> Self::Item

source

fn describe(&self) -> String

Implementors§

source§

impl<T> DefaultValue for Described<T>

§

type Item = T

source§

impl<T, F: FnOnce() -> T> DefaultValue for Lazy<T, F>

§

type Item = T

source§

impl<T: Display> DefaultValue for Display<T>

§

type Item = T

source§

impl<V: FromStr, T: From<V>> DefaultValue for Parsed<V, T>

§

type Item = T