(str: &str)
| 95 | impl CommandParsable for CommandParsableCoordinate { |
| 96 | fn parse(parser: &mut CommandParser<'_>) -> Result<Self, CommandParseError> { |
| 97 | fn parse_auto_zeroize(str: &str) -> Result<f64, CommandParseError> { |
| 98 | Ok(if str.is_empty() { 0.0 } else { str.parse()? }) |
| 99 | } |
| 100 | |
| 101 | fn parse_with_relative(str: &str) -> Result<(f64, bool), CommandParseError> { |
| 102 | if let Some(stripped) = str.strip_prefix('~') { |