Trait proc_macro_utils::TokenTreePunct
source · pub trait TokenTreePunct {
Show 24 methods
// Required methods
fn is_equals(&self) -> bool;
fn is_less_than(&self) -> bool;
fn is_greater_than(&self) -> bool;
fn is_exclamation(&self) -> bool;
fn is_tilde(&self) -> bool;
fn is_plus(&self) -> bool;
fn is_minus(&self) -> bool;
fn is_asterix(&self) -> bool;
fn is_slash(&self) -> bool;
fn is_percent(&self) -> bool;
fn is_caret(&self) -> bool;
fn is_and(&self) -> bool;
fn is_pipe(&self) -> bool;
fn is_at(&self) -> bool;
fn is_dot(&self) -> bool;
fn is_comma(&self) -> bool;
fn is_semi(&self) -> bool;
fn is_colon(&self) -> bool;
fn is_pound(&self) -> bool;
fn is_dollar(&self) -> bool;
fn is_question(&self) -> bool;
fn is_quote(&self) -> bool;
fn is_alone(&self) -> bool;
fn is_joint(&self) -> bool;
}
Expand description
Trait to test for punctuation
Required Methods§
sourcefn is_less_than(&self) -> bool
fn is_less_than(&self) -> bool
Tests if the token is <
sourcefn is_greater_than(&self) -> bool
fn is_greater_than(&self) -> bool
Tests if the token is >
sourcefn is_exclamation(&self) -> bool
fn is_exclamation(&self) -> bool
Tests if the token is !
sourcefn is_asterix(&self) -> bool
fn is_asterix(&self) -> bool
Tests if the token is *
sourcefn is_percent(&self) -> bool
fn is_percent(&self) -> bool
Tests if the token is %
sourcefn is_question(&self) -> bool
fn is_question(&self) -> bool
Tests if the token is ?
Implementations on Foreign Types§
source§impl TokenTreePunct for TokenTree
impl TokenTreePunct for TokenTree
source§fn is_less_than(&self) -> bool
fn is_less_than(&self) -> bool
Tests if the token is <
source§fn is_greater_than(&self) -> bool
fn is_greater_than(&self) -> bool
Tests if the token is >
source§fn is_exclamation(&self) -> bool
fn is_exclamation(&self) -> bool
Tests if the token is !
source§fn is_asterix(&self) -> bool
fn is_asterix(&self) -> bool
Tests if the token is *
source§fn is_percent(&self) -> bool
fn is_percent(&self) -> bool
Tests if the token is %
source§fn is_question(&self) -> bool
fn is_question(&self) -> bool
Tests if the token is ?
source§impl TokenTreePunct for TokenTree
impl TokenTreePunct for TokenTree
source§fn is_less_than(&self) -> bool
fn is_less_than(&self) -> bool
Tests if the token is <
source§fn is_greater_than(&self) -> bool
fn is_greater_than(&self) -> bool
Tests if the token is >
source§fn is_exclamation(&self) -> bool
fn is_exclamation(&self) -> bool
Tests if the token is !
source§fn is_asterix(&self) -> bool
fn is_asterix(&self) -> bool
Tests if the token is *
source§fn is_percent(&self) -> bool
fn is_percent(&self) -> bool
Tests if the token is %
source§fn is_question(&self) -> bool
fn is_question(&self) -> bool
Tests if the token is ?