Docs.rs
garbage-code-hunter-0.1.2
garbage-code-hunter 0.1.2
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
Timwood0x10
Dependencies
clap ^4.0
normal
colored ^3.0.0
normal
quote ^1.0
normal
regex ^1.0
normal
syn ^2.0
normal
walkdir ^2.0
normal
criterion ^0.7
dev
tempfile ^3.0
dev
Versions
15.85%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Module utils
garbage_
code_
hunter
0.1.2
Module utils
Module Items
Functions
In crate garbage_
code_
hunter
garbage_code_hunter
Module
utils
Copy item path
Source
Functions
§
get_
column_
number
从 syn AST 节点获取列号
get_
line_
number
从 syn AST 节点获取行号 注意:由于 proc_macro2::Span 的限制,我们只能返回默认值
get_
position
从 syn AST 节点获取位置信息 (行号, 列号) 注意:在当前实现中,这将返回 (1, 1) 作为默认值