[][src]Function voca_rs::query::is_alphadigit

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

Checks whether subject contains contains only alpha and digit characters.

Arguments

Example

use voca_rs::*;
query::is_alphadigit("");
// => false
query::is_alphadigit("cafe\u{0301}"); // or "café"
// => true
query::is_alphadigit("year2020");
// => true
query::is_alphadigit("1448");
// => true
query::is_alphadigit("40-20");
// => false
use voca_rs::Voca;
"year2020"._is_alphadigit();
// => true