Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NOP0/rustmatic
/ functions
Functions
148 in github.com/NOP0/rustmatic
⨍
Functions
148
◇
Types & classes
73
↓ 15 callers
Function
to_span
(pest_span: pest::Span<'_>)
structured-text/src/ast.rs:12
↓ 4 callers
Method
kind
(&self)
wasm/src/lib.rs:75
↓ 4 callers
Method
register
Register a new device.
core/src/device_manager.rs:24
↓ 4 callers
Function
wasm_log
( ctx: &mut Ctx, level: i32, file: WasmPtr<u8, Array>, file_len: i32, line: i32, messa
wasm/src/lib.rs:331
↓ 3 callers
Method
add_process
Add a process to the list of processes this [`Runtime`] will look after.
runtime/src/lib.rs:57
↓ 3 callers
Method
elapsed
How much time has elapsed since the [`Instant`] was created?
iec-std/src/time.rs:30
↓ 3 callers
Function
preamble
(pair: Pair<'_, Rule>)
structured-text/src/ast.rs:16
↓ 3 callers
Function
set_variable
( ctx: &mut Ctx, name: WasmPtr<u8, Array>, name_len: i32, value: Q, map: F, )
wasm/src/lib.rs:498
↓ 3 callers
Function
variable_get_and_map
( ctx: &mut Ctx, name: WasmPtr<u8, Array>, name_len: i32, value: WasmPtr<Q>, map: F, )
wasm/src/lib.rs:424
↓ 2 callers
Method
inputs
(&mut self)
runtime/src/lib.rs:236
↓ 2 callers
Method
instantiate
(&self, name: &str, src: &str)
wasm-test/src/compile.rs:18
↓ 2 callers
Method
iter_processes
Get an iterator over all known processes.
runtime/src/lib.rs:50
↓ 2 callers
Method
outputs
(&mut self)
runtime/src/lib.rs:238
↓ 2 callers
Method
poll
(&mut self, env: &mut dyn Environment)
wasm/src/lib.rs:173
↓ 2 callers
Method
read
( &self, device_id: DeviceID, )
core/src/device_manager.rs:38
↓ 2 callers
Method
update
(&mut self, devices: &DeviceManager )
core/src/process_image.rs:175
↓ 2 callers
Function
wasm_current_time
( ctx: &mut Ctx, secs: WasmPtr<u64>, nanos: WasmPtr<u32>, )
wasm/src/lib.rs:310
↓ 2 callers
Function
wasm_write_output
( ctx: &mut Ctx, address: u32, data: WasmPtr<u8, Array>, data_len: i32, )
wasm/src/lib.rs:399
↓ 2 callers
Method
write
( &self, device_id: DeviceID, new_state: T, )
core/src/device_manager.rs:64
↓ 1 callers
Method
compare
(&self, pass: &Pass)
wasm-test/src/environment.rs:31
↓ 1 callers
Function
compile_to_wasm
( name: &str, src: &str, target_dir: &Path, std_manifest_dir: &Path, )
wasm-test/src/compile.rs:70
↓ 1 callers
Method
duration_since
(self, earlier: Instant)
iec-std/src/time.rs:27
↓ 1 callers
Method
init
(&mut self, _system: &mut dyn System)
gpio/examples/gpio-example.rs:47
↓ 1 callers
Method
init
(&mut self)
runtime/src/lib.rs:101
↓ 1 callers
Method
init
(&mut self, _system: &mut dyn System)
runtime/examples/basic-example.rs:43
↓ 1 callers
Method
load_inputs
(&mut self, inputs: &[u8])
wasm-test/src/environment.rs:26
↓ 1 callers
Function
parse
Parse a string of *Structured Text*.
structured-text/src/lib.rs:28
↓ 1 callers
Method
parse
(name: N, src: S, recipe: R)
wasm-test/src/test_case.rs:36
↓ 1 callers
Method
poll
(&mut self, system: &mut dyn System)
gpio/examples/gpio-example.rs:53
↓ 1 callers
Method
poll
Poll all known [`Process`]es, removing any that have run to completion or faulted.
runtime/src/lib.rs:66
↓ 1 callers
Method
poll
(&mut self, system: &mut dyn System)
runtime/examples/basic-example.rs:49
↓ 1 callers
Function
polling_period
(input_address: usize)
wasm/tests/data/blinky.rs:54
↓ 1 callers
Function
set_bit_state
(address: usize, bit: u8, state: bool)
wasm/tests/data/blinky.rs:36
↓ 1 callers
Method
setup
(&mut self, pass: &Pass)
wasm-test/src/environment.rs:17
↓ 1 callers
Function
wasm_read_input
( ctx: &mut Ctx, address: u32, buffer: WasmPtr<u8, Array>, buffer_len: i32, )
wasm/src/lib.rs:378
↓ 1 callers
Method
with_environment_context
( &mut self, env: &mut dyn Environment, func: F, )
wasm/src/lib.rs:185
Function
_pretty_print
A way to cheat [`parses_to!()`] when you want to see what a parse tree would look like.
structured-text/src/ast.rs:1532
Function
a_plus_b
()
structured-text/src/ast.rs:894
Method
analogue_read
( &self, device_id: DeviceID, )
core/src/device_manager.rs:57
Method
analogue_write
( &self, device_id: DeviceID, new_state: f32, )
core/src/device_manager.rs:85
Method
code
(&self)
wasm/src/lib.rs:53
Method
custom
( message: S, span: pest::Span<'_>, )
structured-text/src/error.rs:18
Method
declare_variable
( &self, name: &str, initial_value: Value, )
runtime/src/lib.rs:208
Method
default
()
wasm/src/lib.rs:564
Method
default
()
wasm-test/src/compile.rs:42
Method
default
()
core/src/device_manager.rs:100
Method
devices
(&self)
runtime/src/lib.rs:204
Method
digital_read
( &self, device_id: DeviceID, )
core/src/device_manager.rs:50
Method
digital_write
( &self, device_id: DeviceID, new_state: bool, )
core/src/device_manager.rs:77
Method
elapsed
(&self)
wasm/src/lib.rs:575
Method
elapsed
(&self)
wasm-test/src/environment.rs:67
Method
elapsed
(&self)
runtime/src/lib.rs:124
Method
expect_rule
( rule: Rule, pair: &Pair<'_, Rule>, )
structured-text/src/error.rs:31
Method
expected_one_of
( rules: &[Rule], span: pest::Span<'_>, )
structured-text/src/error.rs:50
Method
flush
(&mut self)
runtime/tests/wasm-program.rs:30
Method
fmt
(&self, f: &mut Formatter<'_>)
dummy-input/src/lib.rs:38
Method
fmt
(&self, f: &mut Formatter<'_>)
gpio/src/lib.rs:81
Method
fmt
(&self, f: &mut Formatter<'_>)
core/src/device.rs:27
Method
fmt
(&self, f: &mut Formatter<'_>)
structured-text/src/error.rs:79
Method
from
(other: CallError)
wasm/src/lib.rs:64
Method
from
(other: Box<dyn Error>)
core/src/device.rs:49
Method
from
(other: PestError<Rule>)
structured-text/src/error.rs:69
Method
from_pair
(pair: Pair<'_, Rule>)
structured-text/src/ast.rs:48
Method
get_adress
(config: &Config<bool>, device: DeviceID)
core/src/process_image.rs:23
Method
get_device
(config: &Config<bool>, adress: Self::Adress)
core/src/process_image.rs:27
Method
get_variable
(&self, name: &str)
wasm/src/lib.rs:610
Method
get_variable
(&self, name: &str)
wasm-test/src/environment.rs:112
Method
get_variable
(&self, name: &str)
runtime/src/lib.rs:149
Method
init
(&mut self, system: &mut dyn System)
core/src/lib.rs:61
Method
input
(chip: Chip, line: u32)
gpio/src/lib.rs:22
Method
load
(name: S, wasm: &[u8])
wasm/src/lib.rs:143
Method
load
(src_file: P, recipe_file: Q)
wasm-test/src/test_case.rs:14
Method
log
(&mut self, record: &Record)
wasm/src/lib.rs:605
Method
log
(&mut self, record: &Record<'_>)
wasm-test/src/environment.rs:103
Method
log
(&mut self, record: &Record<'_>)
runtime/src/lib.rs:144
Function
main
()
wasm/examples/basic-runtime.rs:4
Function
main
()
gpio/examples/gpio-example.rs:81
Function
main
()
runtime/examples/basic-example.rs:82
Method
name
(&self)
wasm/src/lib.rs:171
Method
new
()
dummy-input/src/lib.rs:14
Method
new
(runtime: &mut Runtime)
gpio/examples/gpio-example.rs:14
Method
new
()
core/src/device_manager.rs:12
Method
new
(direction: Direction)
core/src/process_image.rs:151
Method
new
(value: S, start: I, end: I)
structured-text/src/ast.rs:148
Method
new
Create an empty [`Runtime`].
runtime/src/lib.rs:38
Method
new
(vec: Rc<RefCell<Vec<u8>>>)
runtime/tests/wasm-program.rs:15
Method
new
(runtime: &mut Runtime)
runtime/examples/basic-example.rs:13
Method
now
The current time.
iec-std/src/time.rs:14
Method
now
(&self)
runtime/src/lib.rs:206
Method
of_type
Get all devices which can read/write values of type `T`.
core/src/device_manager.rs:19
Method
output
(chip: Chip, line: u32)
gpio/src/lib.rs:30
Function
panic_handler
(info: &PanicInfo)
iec-std/src/sys.rs:9
Function
parse_a_function
()
structured-text/src/ast.rs:1211
Function
parse_a_function_block
()
structured-text/src/ast.rs:1288
Function
parse_a_hex_integer
()
structured-text/src/ast.rs:1014
Function
parse_a_program
()
structured-text/src/ast.rs:1139
Function
parse_a_variable_declaration
()
structured-text/src/ast.rs:788
Function
parse_an_integer
()
structured-text/src/ast.rs:992
Function
parse_basic_float
()
structured-text/src/ast.rs:972
Function
parse_false
()
structured-text/src/ast.rs:928
next →
1–100 of 148, ranked by callers