MCPcopy Create free account

hub / github.com/NOP0/rustmatic / functions

Functions148 in github.com/NOP0/rustmatic

↓ 15 callersFunctionto_span
(pest_span: pest::Span<'_>)
structured-text/src/ast.rs:12
↓ 4 callersMethodkind
(&self)
wasm/src/lib.rs:75
↓ 4 callersMethodregister
Register a new device.
core/src/device_manager.rs:24
↓ 4 callersFunctionwasm_log
( ctx: &mut Ctx, level: i32, file: WasmPtr<u8, Array>, file_len: i32, line: i32, messa
wasm/src/lib.rs:331
↓ 3 callersMethodadd_process
Add a process to the list of processes this [`Runtime`] will look after.
runtime/src/lib.rs:57
↓ 3 callersMethodelapsed
How much time has elapsed since the [`Instant`] was created?
iec-std/src/time.rs:30
↓ 3 callersFunctionpreamble
(pair: Pair<'_, Rule>)
structured-text/src/ast.rs:16
↓ 3 callersFunctionset_variable
( ctx: &mut Ctx, name: WasmPtr<u8, Array>, name_len: i32, value: Q, map: F, )
wasm/src/lib.rs:498
↓ 3 callersFunctionvariable_get_and_map
( ctx: &mut Ctx, name: WasmPtr<u8, Array>, name_len: i32, value: WasmPtr<Q>, map: F, )
wasm/src/lib.rs:424
↓ 2 callersMethodinputs
(&mut self)
runtime/src/lib.rs:236
↓ 2 callersMethodinstantiate
(&self, name: &str, src: &str)
wasm-test/src/compile.rs:18
↓ 2 callersMethoditer_processes
Get an iterator over all known processes.
runtime/src/lib.rs:50
↓ 2 callersMethodoutputs
(&mut self)
runtime/src/lib.rs:238
↓ 2 callersMethodpoll
(&mut self, env: &mut dyn Environment)
wasm/src/lib.rs:173
↓ 2 callersMethodread
( &self, device_id: DeviceID, )
core/src/device_manager.rs:38
↓ 2 callersMethodupdate
(&mut self, devices: &DeviceManager )
core/src/process_image.rs:175
↓ 2 callersFunctionwasm_current_time
( ctx: &mut Ctx, secs: WasmPtr<u64>, nanos: WasmPtr<u32>, )
wasm/src/lib.rs:310
↓ 2 callersFunctionwasm_write_output
( ctx: &mut Ctx, address: u32, data: WasmPtr<u8, Array>, data_len: i32, )
wasm/src/lib.rs:399
↓ 2 callersMethodwrite
( &self, device_id: DeviceID, new_state: T, )
core/src/device_manager.rs:64
↓ 1 callersMethodcompare
(&self, pass: &Pass)
wasm-test/src/environment.rs:31
↓ 1 callersFunctioncompile_to_wasm
( name: &str, src: &str, target_dir: &Path, std_manifest_dir: &Path, )
wasm-test/src/compile.rs:70
↓ 1 callersMethodduration_since
(self, earlier: Instant)
iec-std/src/time.rs:27
↓ 1 callersMethodinit
(&mut self, _system: &mut dyn System)
gpio/examples/gpio-example.rs:47
↓ 1 callersMethodinit
(&mut self)
runtime/src/lib.rs:101
↓ 1 callersMethodinit
(&mut self, _system: &mut dyn System)
runtime/examples/basic-example.rs:43
↓ 1 callersMethodload_inputs
(&mut self, inputs: &[u8])
wasm-test/src/environment.rs:26
↓ 1 callersFunctionparse
Parse a string of *Structured Text*.
structured-text/src/lib.rs:28
↓ 1 callersMethodparse
(name: N, src: S, recipe: R)
wasm-test/src/test_case.rs:36
↓ 1 callersMethodpoll
(&mut self, system: &mut dyn System)
gpio/examples/gpio-example.rs:53
↓ 1 callersMethodpoll
Poll all known [`Process`]es, removing any that have run to completion or faulted.
runtime/src/lib.rs:66
↓ 1 callersMethodpoll
(&mut self, system: &mut dyn System)
runtime/examples/basic-example.rs:49
↓ 1 callersFunctionpolling_period
(input_address: usize)
wasm/tests/data/blinky.rs:54
↓ 1 callersFunctionset_bit_state
(address: usize, bit: u8, state: bool)
wasm/tests/data/blinky.rs:36
↓ 1 callersMethodsetup
(&mut self, pass: &Pass)
wasm-test/src/environment.rs:17
↓ 1 callersFunctionwasm_read_input
( ctx: &mut Ctx, address: u32, buffer: WasmPtr<u8, Array>, buffer_len: i32, )
wasm/src/lib.rs:378
↓ 1 callersMethodwith_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
Functiona_plus_b
()
structured-text/src/ast.rs:894
Methodanalogue_read
( &self, device_id: DeviceID, )
core/src/device_manager.rs:57
Methodanalogue_write
( &self, device_id: DeviceID, new_state: f32, )
core/src/device_manager.rs:85
Methodcode
(&self)
wasm/src/lib.rs:53
Methodcustom
( message: S, span: pest::Span<'_>, )
structured-text/src/error.rs:18
Methoddeclare_variable
( &self, name: &str, initial_value: Value, )
runtime/src/lib.rs:208
Methoddefault
()
wasm/src/lib.rs:564
Methoddefault
()
wasm-test/src/compile.rs:42
Methoddefault
()
core/src/device_manager.rs:100
Methoddevices
(&self)
runtime/src/lib.rs:204
Methoddigital_read
( &self, device_id: DeviceID, )
core/src/device_manager.rs:50
Methoddigital_write
( &self, device_id: DeviceID, new_state: bool, )
core/src/device_manager.rs:77
Methodelapsed
(&self)
wasm/src/lib.rs:575
Methodelapsed
(&self)
wasm-test/src/environment.rs:67
Methodelapsed
(&self)
runtime/src/lib.rs:124
Methodexpect_rule
( rule: Rule, pair: &Pair<'_, Rule>, )
structured-text/src/error.rs:31
Methodexpected_one_of
( rules: &[Rule], span: pest::Span<'_>, )
structured-text/src/error.rs:50
Methodflush
(&mut self)
runtime/tests/wasm-program.rs:30
Methodfmt
(&self, f: &mut Formatter<'_>)
dummy-input/src/lib.rs:38
Methodfmt
(&self, f: &mut Formatter<'_>)
gpio/src/lib.rs:81
Methodfmt
(&self, f: &mut Formatter<'_>)
core/src/device.rs:27
Methodfmt
(&self, f: &mut Formatter<'_>)
structured-text/src/error.rs:79
Methodfrom
(other: CallError)
wasm/src/lib.rs:64
Methodfrom
(other: Box<dyn Error>)
core/src/device.rs:49
Methodfrom
(other: PestError<Rule>)
structured-text/src/error.rs:69
Methodfrom_pair
(pair: Pair<'_, Rule>)
structured-text/src/ast.rs:48
Methodget_adress
(config: &Config<bool>, device: DeviceID)
core/src/process_image.rs:23
Methodget_device
(config: &Config<bool>, adress: Self::Adress)
core/src/process_image.rs:27
Methodget_variable
(&self, name: &str)
wasm/src/lib.rs:610
Methodget_variable
(&self, name: &str)
wasm-test/src/environment.rs:112
Methodget_variable
(&self, name: &str)
runtime/src/lib.rs:149
Methodinit
(&mut self, system: &mut dyn System)
core/src/lib.rs:61
Methodinput
(chip: Chip, line: u32)
gpio/src/lib.rs:22
Methodload
(name: S, wasm: &[u8])
wasm/src/lib.rs:143
Methodload
(src_file: P, recipe_file: Q)
wasm-test/src/test_case.rs:14
Methodlog
(&mut self, record: &Record)
wasm/src/lib.rs:605
Methodlog
(&mut self, record: &Record<'_>)
wasm-test/src/environment.rs:103
Methodlog
(&mut self, record: &Record<'_>)
runtime/src/lib.rs:144
Functionmain
()
wasm/examples/basic-runtime.rs:4
Functionmain
()
gpio/examples/gpio-example.rs:81
Functionmain
()
runtime/examples/basic-example.rs:82
Methodname
(&self)
wasm/src/lib.rs:171
Methodnew
()
dummy-input/src/lib.rs:14
Methodnew
(runtime: &mut Runtime)
gpio/examples/gpio-example.rs:14
Methodnew
()
core/src/device_manager.rs:12
Methodnew
(direction: Direction)
core/src/process_image.rs:151
Methodnew
(value: S, start: I, end: I)
structured-text/src/ast.rs:148
Methodnew
Create an empty [`Runtime`].
runtime/src/lib.rs:38
Methodnew
(vec: Rc<RefCell<Vec<u8>>>)
runtime/tests/wasm-program.rs:15
Methodnew
(runtime: &mut Runtime)
runtime/examples/basic-example.rs:13
Methodnow
The current time.
iec-std/src/time.rs:14
Methodnow
(&self)
runtime/src/lib.rs:206
Methodof_type
Get all devices which can read/write values of type `T`.
core/src/device_manager.rs:19
Methodoutput
(chip: Chip, line: u32)
gpio/src/lib.rs:30
Functionpanic_handler
(info: &PanicInfo)
iec-std/src/sys.rs:9
Functionparse_a_function
()
structured-text/src/ast.rs:1211
Functionparse_a_function_block
()
structured-text/src/ast.rs:1288
Functionparse_a_hex_integer
()
structured-text/src/ast.rs:1014
Functionparse_a_program
()
structured-text/src/ast.rs:1139
Functionparse_a_variable_declaration
()
structured-text/src/ast.rs:788
Functionparse_an_integer
()
structured-text/src/ast.rs:992
Functionparse_basic_float
()
structured-text/src/ast.rs:972
Functionparse_false
()
structured-text/src/ast.rs:928
next →1–100 of 148, ranked by callers