Skip to main content

JavaStrExt

Trait JavaStrExt 

Source
pub trait JavaStrExt {
    // Required methods
    fn is_java_keyword(&self) -> bool;
    fn is_java_reserved_keyword(&self) -> bool;
    fn is_java_contextual_keyword(&self) -> bool;
    fn is_java_null_literal(&self) -> bool;
    fn is_java_boolean_literal(&self) -> bool;
    fn is_java_operator(&self) -> bool;
    fn is_java_separator(&self) -> bool;
}
Expand description

str extension for checking if a &str is e.g. a Java keyword.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl JavaStrExt for str

Implementors§