Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ TokenSet
Class
TokenSet
crates/ruff_python_parser/src/token_set.rs:5–5 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
/// A bit-set of `TokenKind`s
4
#[derive(Clone, Copy)]
5
pub(crate) struct TokenSet(u128);
6
7
impl TokenSet {
8
pub(crate) const fn new<const N: usize>(kinds: [TokenKind; N]) -> TokenSet {
Callers
3
new
Method · 0.85
union
Method · 0.85
remove
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected