[][src]Function voca_rs::query::is_numeric

pub fn is_numeric(subject: &str) -> bool

Checks whether subject is numeric.

Arguments

  • subject - The string to verify.

Example

use voca_rs::*;
query::is_numeric("350");
// => true
query::is_numeric("-20.5");
// => true
query::is_numeric("0xFF");
// => true
query::is_numeric("1.5E+2");
// => true
query::is_numeric("five");
// => false