Function cuicui_chirp::parse_dsl::args::from_str
source · pub fn from_str<T: FromStr>(
_: &TypeRegistry,
_: Option<&mut LoadContext<'_>>,
input: &str
) -> Result<T, T::Err>where
T::Err: Error + Send + Sync,
Expand description
Deserialize a method argument using the FromStr
std
trait.
For your own types, it might be more succint to define your own parser
rather than depend on ron
.
Other parsers
Errors
FromStr::from_str
fails, there is a parsing error.