kutil_std/string/
parse.rs

1use super::super::message_error;
2
3//
4// ParseStr
5//
6
7/// Parse string.
8pub trait ParseStr<ParsedT> {
9    /// Parse string.
10    fn parse(representation: &str) -> Result<ParsedT, ParseError>;
11}
12
13//
14// ParseError
15//
16
17message_error!(ParseError, "malformed");