[][src]Trait swc_ecma_parser::lexer::util::CharExt

pub trait CharExt: Copy {
    pub fn to_char(self) -> Option<char>;

    pub fn is_ident_start(self) -> bool { ... }
pub fn is_ident_part(self) -> bool { ... }
pub fn is_line_break(self) -> bool { ... }
pub fn is_ws(self) -> bool { ... } }

Implemented for char.

Required methods

pub fn to_char(self) -> Option<char>[src]

Loading content...

Provided methods

pub fn is_ident_start(self) -> bool[src]

Test whether a given character code starts an identifier.

https://tc39.github.io/ecma262/#prod-IdentifierStart

pub fn is_ident_part(self) -> bool[src]

Test whether a given character is part of an identifier.

pub fn is_line_break(self) -> bool[src]

See https://tc39.github.io/ecma262/#sec-line-terminators

pub fn is_ws(self) -> bool[src]

See https://tc39.github.io/ecma262/#sec-white-space

Loading content...

Implementations on Foreign Types

impl CharExt for char[src]

Loading content...

Implementors

Loading content...