Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adam-mcdaniel/reckon
/ functions
Functions
395 in github.com/adam-mcdaniel/reckon
⨍
Functions
395
◇
Types & classes
33
Function
int_to_peano
Convert an integer to a Peano number
src/util/mod.rs:13
Method
is_complete
Check if the solution is complete, i.e., if the final query is a ground truth (contains no variables).
src/env.rs:1210
Method
is_invalid
Is this rule invalid? A rule is invalid if all the arguments of the head are variables (no progress can be made by the head matching), and all the te
src/rule.rs:180
Method
is_recursive
Is this rule recursive? A rule is recursive if any of the following are true: 1. The arguments of the head contain an application of the head function
src/rule.rs:164
Method
itemTypeFromName
(typename)
docs/static.files/search-f0d225181b97f9a4.js:1
Function
main
()
src/main.rs:785
Method
name
Get the name of the symbol as a string This is useful when you need the internal string representation of the symbol.
src/symbol.rs:115
Method
new
Create a new symbol from a string If the symbol already exists in the symbol table, it will return the existing symbol. Otherwise, it will create a n
src/symbol.rs:81
Method
new
Create a new variable with a given name. Two variables with the same name will have the same ID until refreshed. Two variables with the same name, w
src/term.rs:40
Method
new
Create a new environment with the given rules.
src/env.rs:342
Method
new
Create a new query with the given goals to prove
src/query.rs:21
Method
newParsedQuery
(userQuery)
docs/static.files/search-f0d225181b97f9a4.js:1
Function
onSearchSubmit
(e)
docs/static.files/search-f0d225181b97f9a4.js:6
Function
options_bool_flag
(i: &str)
src/parse.rs:423
Function
options_int_flag
(i: &str)
src/parse.rs:414
Function
options_str_flag
(i: &str)
src/parse.rs:432
Method
parseInput
(query,parserState)
docs/static.files/search-f0d225181b97f9a4.js:1
Function
parse_app
Parse an application term: `foo(term, term, ...)` We parse the symbol first, then arguments in parentheses.
src/parse.rs:289
Function
parse_app_rule
Parse a single `Rule`: `head :- goal1, goal2, ... .` or a fact: `head.`
src/parse.rs:335
Function
parse_bool_term
(i: &str)
src/parse.rs:66
Function
parse_complement
(i: &str)
src/parse.rs:321
Function
parse_cons
Parse a cons cell: `[term | term]` This is a special case of a list, where the tail is a single term.
src/parse.rs:271
Function
parse_cut
Parse the cut symbol `#`.
src/parse.rs:82
Function
parse_escaped_char
Parse an escaped character: \n, \t, \r, \u{00AC}, etc.
src/parse.rs:124
Function
parse_escaped_whitespace
Parse a backslash, followed by any amount of whitespace. This is used later to discard any escaped whitespace.
src/parse.rs:153
Function
parse_fragment
Combine parse_literal, parse_escaped_whitespace, and parse_escaped_char into a StringFragment.
src/parse.rs:184
Function
parse_int_term
(i: &str)
src/parse.rs:42
Function
parse_literal
Parse a non-empty block of text that doesn't include \ or "
src/parse.rs:160
Function
parse_nil
Parse `nil`.
src/parse.rs:77
Function
parse_string_term
(i: &str)
src/parse.rs:230
Function
parse_term_rule
(i: &str)
src/parse.rs:372
Function
parse_unicode
Parse a unicode sequence, of the form u{XXXX}, where XXXX is 1 to 6 hexadecimal numerals. We will combine this later with parse_escaped_char to parse
src/parse.rs:93
Function
parse_var
Parse a variable token: starts with uppercase or underscore, followed by alphanums or `_`. Example: `X`, `User42`, `_foo`.
src/parse.rs:237
Method
partial_cmp
(&self, other: &Self)
src/symbol.rs:192
Method
pathSplitter
(path)
docs/static.files/search-f0d225181b97f9a4.js:1
Method
permissive
Create a new search configuration with permissive defaults. This configuration allows for a wide search space, with no limits on depth, width, or ste
src/env.rs:129
Function
print_rainbow_text
(text: &str)
src/main.rs:196
Function
print_rainbow_text_lines
(text: &str)
src/main.rs:223
Method
pushFunc
docs/static.files/search-f0d225181b97f9a4.js:1
Method
push_to_queue
Push an item to the queue, depending on the traversal strategy.
src/env.rs:32
Function
recognize_sign_digits
Recognize optional sign plus digits (used by parse_int).
src/parse.rs:48
Method
reduce_in_place
Simplify the query by substituting an environment's variable bindings into the query's goals. This makes the query's goals more concrete. This mutate
src/query.rs:315
Method
refresh
(&self)
src/symbol.rs:124
Method
refresh
Get a new unique variable that has not been used before.
src/term.rs:49
Method
refresh_variables
Refresh only the variables in the rule that are in the set of variables to refresh. This is useful when we want to avoid refreshing variables unneces
src/rule.rs:260
Method
remove_provable_complements
Remove all the complements that we can prove are true. This is done by finding all the complements, and then trying to prove that the complement is f
src/query.rs:88
Method
reset
Reset the solver's state, clearing any saved rule applications or solutions
src/solvers/mod.rs:13
Method
reset
(&mut self)
src/solvers/mod.rs:51
Function
resize
(e)
docs/static.files/main-f070b9041d14864c.js:11
Function
rgb_to_hsv
(c: (u8, u8, u8))
src/main.rs:308
Method
save_rule_application
Save a rule application for later reuse
src/solvers/mod.rs:18
Method
save_solutions
Save a set of solutions for later reuse
src/solvers/mod.rs:28
Function
searchAfter500ms
()
docs/static.files/search-f0d225181b97f9a4.js:6
Function
sendSearchForm
()
docs/static.files/main-f070b9041d14864c.js:1
Function
settingsBlurHandler
(event)
docs/static.files/settings-805db61a62df4bd2.js:17
Function
showHideCodeExampleButtons
(event)
docs/static.files/main-f070b9041d14864c.js:11
Method
size
Get the size of the rule. The size of a rule is the sum of the sizes of the head and the tail terms.
src/rule.rs:197
Method
size
Get the sum of the sizes of all the goals in the query The size of a goal term is the total number of subterms in the term
src/query.rs:33
Method
sortFunc
(aaa,bbb)
docs/static.files/search-f0d225181b97f9a4.js:1
Method
sortQ
(a,b)
docs/static.files/search-f0d225181b97f9a4.js:1
Method
sortResults
(results,isType,preferredCrate)
docs/static.files/search-f0d225181b97f9a4.js:1
Method
substitute
Substitute all occurrences of some variables in the query with the given terms
src/query.rs:294
Method
substitute_var
Substitute a single variable with a term. This will modify this term in place, replacing all occurrences of the given variable with the given term.
src/term.rs:558
Function
test_application
()
src/env.rs:1518
Function
test_application
()
src/rule.rs:354
Function
test_application2
()
src/rule.rs:369
Function
test_application3
()
src/rule.rs:390
Function
test_example
()
src/env.rs:1305
Function
test_example2
()
src/env.rs:1367
Function
test_example3
()
src/env.rs:1403
Function
test_nested_application
()
src/rule.rs:412
Function
test_nested_application2
()
src/rule.rs:427
Function
test_proof
()
src/env.rs:1561
Function
test_prove_addition
()
src/env.rs:1579
Function
test_prove_multiplication
()
src/env.rs:1430
Function
test_symbol
()
src/symbol.rs:230
Function
test_symbol_id
()
src/symbol.rs:242
Function
test_used_vars
()
src/lib.rs:96
Function
toggleAllDocs
()
docs/static.files/main-f070b9041d14864c.js:1
Function
tooltipBlurHandler
(event)
docs/static.files/main-f070b9041d14864c.js:1
Method
transformResults
docs/static.files/search-f0d225181b97f9a4.js:1
Method
typePassesFilter
(filter,type)
docs/static.files/search-f0d225181b97f9a4.js:1
Method
unifyFunctionTypeCheckBindings
(fnType,queryElem,whereClause,mgensIn,unboxingDepth,)
docs/static.files/search-f0d225181b97f9a4.js:1
Method
unifyFunctionTypeIsMatchCandidate
(fnType,queryElem,mgensIn)
docs/static.files/search-f0d225181b97f9a4.js:1
Method
unifyFunctionTypeIsUnboxCandidate
(fnType,queryElem,whereClause,mgens,unboxingDepth,)
docs/static.files/search-f0d225181b97f9a4.js:1
Method
unifyFunctionTypes
(fnTypesIn,queryElems,whereClause,mgensIn,solutionCb,unboxingDepth,)
docs/static.files/search-f0d225181b97f9a4.js:1
Method
unused_id
()
src/symbol.rs:97
Function
updateCrate
(ev)
docs/static.files/search-f0d225181b97f9a4.js:6
Method
use_saved_rule_application
Attempt to use a saved rule application, returning true if one was found
src/solvers/mod.rs:23
Method
use_saved_solutions
Attempt to use saved solutions, returning them if found
src/solvers/mod.rs:33
Method
used_vars
Get the set of variables used in this term. The variables used in this term are collected and inserted into the given set.
src/term.rs:375
Method
used_vars
Get all the used variables in the query
src/query.rs:277
Function
var
A function to create a new variable term from a name.
src/term.rs:634
Method
var
Create a new symbol term.
src/term.rs:135
Method
when
Constrain a rule by adding a term to the tail. This makes the head of the rule *only true* if this condition is also true.
src/rule.rs:204
← previous
301–395 of 395, ranked by callers