MCPcopy Create free account

hub / github.com/adeschamps/rete / functions

Functions51 in github.com/adeschamps/rete

↓ 9 callersFunctionproductions
()
src/lib.rs:1089
↓ 6 callersMethodadd_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 callersMethodinto
(self)
src/wasm.rs:215
↓ 6 callersFunctionwmes
()
src/lib.rs:1055
↓ 5 callersMethodadd_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 callersMethoddispatch
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 callersMethodnext
Get the next id. This will be different every time this function is called.
src/lib.rs:60
↓ 3 callersMethodremove_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 callersMethodactivate_memories
(&mut self)
src/lib.rs:628
↓ 2 callersMethodactivate_new_node
(&mut self, parent: NodeIndex, new_node: NodeIndex)
src/lib.rs:598
↓ 2 callersMethodjoin_test
(&self, test: &JoinNodeTest, token: TokenId, wme: &Wme)
src/lib.rs:779
↓ 2 callersMethodvariables
Returns an iterator over only the variable tests, along with their indices.
src/lib.rs:985
↓ 2 callersMethodwrite_graphs
(&self)
src/lib.rs:864
↓ 1 callersMethodmatches
(&self, wme: &Wme)
src/lib.rs:889
↓ 1 callersMethodnetwork_graph
(&self)
src/lib.rs:792
↓ 1 callersMethodrecord
(&self, _span: &span::Id, _values: &span::Record<'_>)
src/wasm.rs:267
↓ 1 callersMethodremove_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 callersMethodtoken_graph
(&self)
src/lib.rs:856
Functionadd_and_remove_wmes
()
src/lib.rs:1163
Methodadd_condition
Add a condition to the production.
src/wasm.rs:151
Methodadd_production
Add a production to the rete.
src/wasm.rs:86
Functionadd_productions
()
src/lib.rs:1107
Functionadd_productions_and_wmes
()
src/lib.rs:1119
Methodadd_wme
Insert a WME into the rete.
src/wasm.rs:66
Functionadd_wmes_then_productions
()
src/lib.rs:1138
Functionalpha_tests_cleared
()
src/lib.rs:1217
Methoddefault
()
src/lib.rs:119
Functionduplicate_production_ids
()
src/lib.rs:1235
Functionduplicate_tokens
()
src/lib.rs:1212
Functionempty_rete
()
src/lib.rs:1020
Methodenabled
(&self, _metadata: &tracing::Metadata<'_>)
src/wasm.rs:259
Methodenter
(&self, _span: &span::Id)
src/wasm.rs:279
Methodevent
(&self, event: &tracing::Event<'_>)
src/wasm.rs:271
Methodexit
(&self, _span: &span::Id)
src/wasm.rs:281
Methodfmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:879
Methodfrom
(condition: Condition)
src/lib.rs:997
Methodnew
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
Methodnew
()
src/wasm.rs:26
Methodnew_span
(&self, _span: &span::Attributes<'_>)
src/wasm.rs:263
Functionnode_type_memory_layout
()
src/lib.rs:1249
Methodobserve
(&mut self, observer: Observer)
src/wasm.rs:60
Methodrecord_debug
(&mut self, _field: &field::Field, _value: &dyn std::fmt::Debug)
src/wasm.rs:295
Methodrecord_follows_from
(&self, _span: &span::Id, _follows: &span::Id)
src/wasm.rs:269
Methodrecord_u64
(&mut self, field: &field::Field, value: u64)
src/wasm.rs:286
Methodremove_production
Remove the production with the given id.
src/wasm.rs:108
Functionremove_productions
()
src/lib.rs:1177
Functionremove_productions_with_wmes
()
src/lib.rs:1193
Methodremove_wme
Remove the WME with the given timetag.
src/wasm.rs:78
Methodsymbol
Construct a new test for a constant symbol. Symbol IDs within the same Rete refer to the same values.
src/wasm.rs:196
Methodtake_events
Consume the list of events that have fired since the last this function was called.
src/lib.rs:592
Methodvariable
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