[][src]Trait uwl::CharExt

pub trait CharExt: Copy {
    fn is_ident_start(self) -> bool;
fn is_ident_continue(self) -> bool;
fn is_kebab_continue(self) -> bool; }

Adds additional is_* methods to char,

Required methods

fn is_ident_start(self) -> bool

Is the character fit for the beginning of an identifier? (A-Z)

fn is_ident_continue(self) -> bool

Is the character fit for continuing the identifier? (A-Z; 0-9; _)

fn is_kebab_continue(self) -> bool

Is the character fit for continuing the identifier in kebab-case? (A-Z; 0-9; -)

Loading content...

Implementors

impl CharExt for char[src]

Loading content...