Trait proc_macro_utils::TokenTreePunct
source · pub trait TokenTreePunct {
Show 25 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;
fn alone(self) -> Self;
}
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 ?
sourcefn is_alone(&self) -> bool
fn is_alone(&self) -> bool
Tests if token is followed by some none punctuation token or whitespace.
Implementations on Foreign Types§
source§impl TokenTreePunct for TokenTree
Available on crate feature proc-macro
only.
impl TokenTreePunct for TokenTree
Available on crate feature
proc-macro
only.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§fn is_alone(&self) -> bool
fn is_alone(&self) -> bool
Tests if token is followed by some none punctuation token or whitespace.
source§impl TokenTreePunct for TokenTree
Available on crate feature proc-macro2
only.
impl TokenTreePunct for TokenTree
Available on crate feature
proc-macro2
only.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§fn is_alone(&self) -> bool
fn is_alone(&self) -> bool
Tests if token is followed by some none punctuation token or whitespace.
source§impl TokenTreePunct for Punct
Available on crate feature proc-macro
only.
impl TokenTreePunct for Punct
Available on crate feature
proc-macro
only.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
fn alone(self) -> Self
source§impl TokenTreePunct for Punct
Available on crate feature proc-macro2
only.
impl TokenTreePunct for Punct
Available on crate feature
proc-macro2
only.