Docs.rs
context-core-0.1.0
context-core 0.1.0
Docs.rs crate page
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
mneirynck
Dependencies
chrono ^0.4
normal
hex ^0.4
normal
serde ^1.0
normal
serde_json ^1.0
normal
sha2 ^0.10
normal
thiserror ^1.0
normal
tempfile ^3.24.0
dev
Versions
12.4%
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
Skip to main content
TokenCounter
context_
core
0.1.0
Token
Counter
Required Methods
count_tokens
Implementors
In context_
core::
selection::
ranking
context_core
::
selection
::
ranking
Trait
Token
Counter
Copy item path
Source
pub trait TokenCounter { // Required method fn
count_tokens
(&self, content: &
str
) ->
usize
; }
Required Methods
§
Source
fn
count_tokens
(&self, content: &
str
) ->
usize
Implementors
§
Source
§
impl
TokenCounter
for
ApproxTokenCounter