[][src]Trait uwl::StrExt

pub trait StrExt {
    fn is_numeric(&self) -> bool;
fn is_alphabetic(&self) -> bool;
fn is_alphanumeric(&self) -> bool;
fn is_whitespace(&self) -> bool;
fn is_diglet(&self) -> bool;
fn is_kebab(&self) -> bool; }

Brings over some is_* methods from char to &str, and some methods for identifiers/symbols.

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; -)

Loading content...

Implementors

impl<T: AsRef<str>> StrExt for T[src]

Loading content...