Macro cin_parse

Source
macro_rules! cin_parse {
    ($input: expr, Vec<$type: ty>) => { ... };
    ($input: expr, $type: ty) => { ... };
}
Expand description

Parse input string into a value or a vector of values of a specified type.

§Parameters

  • input: The input &str to be parsed.
  • type: The target type to parse into (e.g., i32, f64, etc.).

§Returns

  • A single value of the specified type if used in scalar mode.
  • A Vec of values if used in vector mode.