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

    fn is_ident_start(self) -> bool { ... }
fn is_ident_part(self) -> bool { ... }
fn is_line_terminator(self) -> bool { ... }
fn is_line_break(self) -> bool { ... }
fn is_ws(self) -> bool { ... } }
Expand description

Implemented for char.

Required methods

Provided methods

Test whether a given character code starts an identifier.

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

Test whether a given character is part of an identifier.

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

See https://tc39.github.io/ecma262/#sec-literals-string-literals

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

Implementations on Foreign Types

Implementors