Structs
struct Print¶
A struct for printing values in the MMMWorld environment.
Traits: AnyType, Copyable, Movable, Representable, UnknownDestructibility
Print Functions¶
struct Print . fn init¶
Initialize the Print struct.
fn init Signature
fn init Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| world | UnsafePointer |
— | — |
fn init Returns
: Self
Static Method
This is a static method.
struct Print . fn next¶
Print the value at a given frequency.
fn next Signature
fn next Parameters
| Name | Type | Description |
|---|---|---|
| T | Writable |
— |
fn next Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| value | T |
— | The value to print. |
| label | Optional |
None |
An optional label to prepend to the printed value. |
| freq | Float64 |
10 |
The frequency (in Hz) at which to print the value. |
Documentation generated with mojo doc from Mojo version 0.25.6.1