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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.