Docs.rs
mnemo-codemode-0.4.1
mnemo-codemode 0.4.1
Docs.rs crate page
Apache-2.0
Links
Repository
crates.io
Source
Owners
sattyamjjain
Dependencies
async-trait ^0.1
normal
mnemo-core ^0.4.0-rc2
normal
serde ^1.0
normal
serde_json ^1.0
normal
thiserror ^2.0
normal
tracing ^0.1
normal
tokio ^1.48
dev
Versions
29.55%
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
estimate_tokens
mnemo_
codemode
0.4.1
In mnemo_
codemode::
token
mnemo_codemode
::
token
Function
estimate_
tokens
Copy item path
Source
pub fn estimate_tokens(s: &
str
) ->
usize
Expand description
Estimate token cost of a UTF-8 string.