pub trait TxtParseValue: VarValue {
// Required methods
fn from_txt(txt: &Txt) -> Result<Self, Txt>;
fn to_txt(&self) -> Txt;
}
Expand description
Represents a type that can be a var value, parse and display.
This trait is used by txt_parse
. It is implemented for all types that are
VarValue + FromStr + Display where FromStr::Err: Display
.
Required Methods§
Object Safety§
This trait is not object safe.