Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dan-wanna-M/kbnf
/ types & classes
Types & classes
47 in github.com/Dan-wanna-M/kbnf
⨍
Functions
238
◇
Types & classes
47
↓ 30 callers
Class
Token
src/vocabulary.rs:23
↓ 6 callers
Class
RegexID
The wrapper struct that represents the regex id in the grammar.
src/grammar.rs:89
↓ 4 callers
Class
NonterminalID
The wrapper struct that represents the nonterminal id in the grammar.
src/grammar.rs:60
↓ 3 callers
Class
SuffixAutomataID
The wrapper struct that represents the suffix automata id in the grammar.
src/grammar.rs:119
↓ 2 callers
Class
TerminalID
The wrapper struct that represents the terminal id in the grammar.
src/grammar.rs:31
Enum
AcceptTokenError
Represents the error when an [`EngineLike`] tries to accept a token.
src/engine_like.rs:17
Enum
AcceptTokenResult
Represents the result after [`EngineLike`] successfully accepts a token.
src/engine_like.rs:29
Class
CompressionConfig
src/config.rs:79
Class
Config
src/config.rs:27
Enum
CreateEngineBaseError
src/engine_base.rs:283
Enum
CreateEngineError
Represents the error type for the [`Engine`] creation.
src/engine.rs:56
Enum
CreateGrammarError
The error type for errors in Grammar creation.
src/grammar.rs:230
Enum
CreateVocabularyError
The error type for [Vocabulary] creation.
src/vocabulary.rs:65
Enum
CreateVocabularyErrorJs
src/ffi_bindings.rs:74
Class
Dotted
src/engine_base.rs:184
Class
DottedDebugStruct
src/engine_base.rs:219
Class
EarleyItem
src/engine_base.rs:35
Class
EarleyItemDebugStruct
src/engine_base.rs:137
Class
Engine
python/kbnf/engine.py:107
Class
Engine
The main struct that wraps the [`EngineBase`] so the user do not have to specify the generic type every time for common cases.
src/engine.rs:51
Class
EngineBase
The low-level engine struct that implements the Earley recognizer with Leo optimization and Earley sets compaction.
src/engine_base.rs:307
Class
EngineConfig
src/engine.rs:21
Interface
EngineLike
A trait that defines the behavior of an [`EngineLike`] object.
src/engine_like.rs:72
Enum
EngineUnion
An enum that represents the common type combinations of [`EngineBase`].
src/engine.rs:38
Class
FirstBytes
src/vocabulary.rs:25
Enum
Fsa
src/config.rs:48
Enum
FsaStateStatus
src/utils.rs:15
Class
Grammar
src/grammar.rs:211
Enum
HIRNode
src/grammar.rs:147
Class
InternalConfig
The internal configuration of the KBNF engine. This is intended for advanced usages.
src/config.rs:12
Enum
MaskLogitsError
Represents the error when an [`EngineLike`] tries to mask logits.
src/engine_like.rs:39
Enum
NonZeroError
src/zero.rs:9
Enum
PostDotItems
src/engine_base.rs:225
Enum
PostDotItemsDebugStruct
src/engine_base.rs:277
Enum
ReadRWKVVocabError
Error type when reading RWKV world model's vocabulary file.
benches/profiler.rs:12
Enum
ReadRWKVVocabError
Error type when reading RWKV world model's vocabulary file.
benches/simple.rs:12
Enum
ReadRWKVVocabError
Error type when reading RWKV world model's vocabulary file.
tests/test.rs:21
Class
RegexConfig
src/config.rs:60
Enum
RegexType
src/grammar.rs:359
Interface
Sealed
src/engine_like.rs:68
Class
ToBeCompletedItem
src/engine_base.rs:144
Class
ToBeCompletedItemDebugStruct
src/engine_base.rs:178
Class
TokensCache
src/grammar.rs:204
Enum
UpdateLogitsError
Represents the error when an [`EngineLike`] tries to update logits.
src/engine_like.rs:57
Class
Vocabulary
src/vocabulary.rs:46
Enum
WriteBufferError
Represents the error when an [`EngineLike`] tries to mask logits.
src/engine_like.rs:48
Class
Zero
src/zero.rs:7