Function rsmorphy::shapes::is_latin [−][src]
pub fn is_latin(token: &str) -> bool
Return True if all token letters are latin and there is at least one latin letter in the token:
use rsmorphy::shapes::is_latin; assert!(is_latin("foo")); assert!(is_latin("123-FOO")); assert!(!is_latin("123")); assert!(!is_latin(":)")); assert!(!is_latin(""));