Docs.rs
token-dict-1.3.0
token-dict 1.3.0
Docs.rs crate page
MIT
10 July 2026
Links
Repository
crates.io
Source
Owners
ghost_333689
Rin1000010
Dependencies
ptrie ^0.7.2
normal
serde ^1
normal
optional
serde_bytes ^0.11
normal
optional
Versions
88.1%
of the crate is documented
Platform
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
Skip to main content
Crate token_dict
token_
dict
1.3.0
All Items
Crate Items
Re-exports
Modules
Structs
Traits
Functions
Crate
token_
dict
Copy item path
Source
Re-exports
§
pub use dict::
TokenDict
;
pub use token::
Token
;
Modules
§
dict
module for token dictionary
token
module for Token type
Structs
§
UTF8
Char
Iter
iterator for live converting utf8 to chars, returning errors for all bytes that aren’t part of a valid character. useful for lazily detokenizing into a string
Traits
§
Val
trait for unifying primitives and their references
Functions
§
dict_
to_
file_
lines
write a TokenDict to a file as lines. Assumes tokens are valid UTF8 and single line
file_
lines_
to_
dict
read tokens separated by line from a file into a TokenDict. Assumes tokens are valid UTF8 and single line