Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ remove
Method
remove
crates/ruff_python_parser/src/token_set.rs:24–26 ·
view source on GitHub ↗
(self, kind: TokenKind)
Source
from the content-addressed store, hash-verified
22
}
23
24
pub(crate) const fn remove(self, kind: TokenKind) -> TokenSet {
25
TokenSet(self.0 & !mask(kind))
26
}
27
28
pub(crate) const fn contains(&self, kind: TokenKind) -> bool {
29
self.0 & mask(kind) != 0
Callers
15
test_remove
Function · 0.45
import_fixture
Function · 0.45
notebook_output_with_diff_spanning_cells
Function · 0.45
remove_file
Method · 0.45
remove_virtual_file
Method · 0.45
remove_directory
Method · 0.45
same_results
Function · 0.45
from_workspace_folders
Method · 0.45
cancel
Method · 0.45
complete
Method · 0.45
close_workspace_folder
Method · 0.45
close_document
Method · 0.45
Calls
2
TokenSet
Class · 0.85
mask
Function · 0.85
Tested by
7
test_remove
Function · 0.36
import_fixture
Function · 0.36
notebook_output_with_diff_spanning_cells
Function · 0.36
try_await_response
Method · 0.36
try_await_notification
Method · 0.36
try_await_request
Method · 0.36
token_set_works_for_tokens
Function · 0.36