Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adeschamps/rete
/ functions
Functions
51 in github.com/adeschamps/rete
⨍
Functions
51
◇
Types & classes
26
↓ 9 callers
Function
productions
()
src/lib.rs:1089
↓ 6 callers
Method
add_production
Add a production to the rete. No reordering of conitions is performed. ``` # use rete::*; # use rete::ConditionTest::*; let mut rete = Rete::default(
src/lib.rs:303
↓ 6 callers
Method
into
(self)
src/wasm.rs:215
↓ 6 callers
Function
wmes
()
src/lib.rs:1055
↓ 5 callers
Method
add_wme
Insert a WME into working memory. ``` # use rete::{Rete, Wme}; let mut rete = Rete::default(); rete.add_wme(Wme([0, 1, 2])); ```
src/lib.rs:181
↓ 5 callers
Method
dispatch
Notify all observers of recent events. They are passed a JSON string, which should be parsed on the JavaScript side according to the definition of the
src/wasm.rs:120
↓ 4 callers
Method
next
Get the next id. This will be different every time this function is called.
src/lib.rs:60
↓ 3 callers
Method
remove_production
Remove a production from the Rete. ``` # use rete::*; # use rete::ConditionTest::*; let mut rete = Rete::default(); rete.add_production(Production {
src/lib.rs:508
↓ 2 callers
Method
activate_memories
(&mut self)
src/lib.rs:628
↓ 2 callers
Method
activate_new_node
(&mut self, parent: NodeIndex, new_node: NodeIndex)
src/lib.rs:598
↓ 2 callers
Method
join_test
(&self, test: &JoinNodeTest, token: TokenId, wme: &Wme)
src/lib.rs:779
↓ 2 callers
Method
variables
Returns an iterator over only the variable tests, along with their indices.
src/lib.rs:985
↓ 2 callers
Method
write_graphs
(&self)
src/lib.rs:864
↓ 1 callers
Method
matches
(&self, wme: &Wme)
src/lib.rs:889
↓ 1 callers
Method
network_graph
(&self)
src/lib.rs:792
↓ 1 callers
Method
record
(&self, _span: &span::Id, _values: &span::Record<'_>)
src/wasm.rs:267
↓ 1 callers
Method
remove_wme
Remove a WME from working memory. ``` # use rete::{Rete, Wme}; let mut rete = Rete::default(); let wme = Wme([0, 1, 2]); rete.add_wme(wme); rete.remo
src/lib.rs:244
↓ 1 callers
Method
token_graph
(&self)
src/lib.rs:856
Function
add_and_remove_wmes
()
src/lib.rs:1163
Method
add_condition
Add a condition to the production.
src/wasm.rs:151
Method
add_production
Add a production to the rete.
src/wasm.rs:86
Function
add_productions
()
src/lib.rs:1107
Function
add_productions_and_wmes
()
src/lib.rs:1119
Method
add_wme
Insert a WME into the rete.
src/wasm.rs:66
Function
add_wmes_then_productions
()
src/lib.rs:1138
Function
alpha_tests_cleared
()
src/lib.rs:1217
Method
default
()
src/lib.rs:119
Function
duplicate_production_ids
()
src/lib.rs:1235
Function
duplicate_tokens
()
src/lib.rs:1212
Function
empty_rete
()
src/lib.rs:1020
Method
enabled
(&self, _metadata: &tracing::Metadata<'_>)
src/wasm.rs:259
Method
enter
(&self, _span: &span::Id)
src/wasm.rs:279
Method
event
(&self, event: &tracing::Event<'_>)
src/wasm.rs:271
Method
exit
(&self, _span: &span::Id)
src/wasm.rs:281
Method
fmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:879
Method
from
(condition: Condition)
src/lib.rs:997
Method
new
Construct a new rete. Optionally, a `slog::Logger` may be passed in. If it is not provided, then the rete will fall back to the standard log using the
src/lib.rs:134
Method
new
()
src/wasm.rs:26
Method
new_span
(&self, _span: &span::Attributes<'_>)
src/wasm.rs:263
Function
node_type_memory_layout
()
src/lib.rs:1249
Method
observe
(&mut self, observer: Observer)
src/wasm.rs:60
Method
record_debug
(&mut self, _field: &field::Field, _value: &dyn std::fmt::Debug)
src/wasm.rs:295
Method
record_follows_from
(&self, _span: &span::Id, _follows: &span::Id)
src/wasm.rs:269
Method
record_u64
(&mut self, field: &field::Field, value: u64)
src/wasm.rs:286
Method
remove_production
Remove the production with the given id.
src/wasm.rs:108
Function
remove_productions
()
src/lib.rs:1177
Function
remove_productions_with_wmes
()
src/lib.rs:1193
Method
remove_wme
Remove the WME with the given timetag.
src/wasm.rs:78
Method
symbol
Construct a new test for a constant symbol. Symbol IDs within the same Rete refer to the same values.
src/wasm.rs:196
Method
take_events
Consume the list of events that have fired since the last this function was called.
src/lib.rs:592
Method
variable
Construct a new test for a variable. Variable IDs are scoped to a production; IDs within the same production must match, but different productions can
src/wasm.rs:206