[−][src]Trait uwl::StrExt
Brings over some is_*
methods from char
to &str
.
Look at char
's docs for more reference.
Required methods
fn is_numeric(&self) -> bool
Does the string consist of numbers? (0-9)
fn is_alphabetic(&self) -> bool
Does the string consist of letters? (A-Z)
fn is_alphanumeric(&self) -> bool
Does the string consist of letters or numbers? (A-Z; 0-9)
fn is_whitespace(&self) -> bool
Does the string consist of whitespace? (\n; \r; ' ')
fn is_diglet(&self) -> bool
Does the string consist of letters, numbers or underscores? (A-Z; 0-9; _)
fn is_kebab(&self) -> bool
Does the string consist of letters, numbers or hyphens? (A-Z; 0-9; -)