Structs
struct Print¶
A struct for printing values in the MMMWorld environment.
Traits: AnyType, Copyable, ImplicitlyDeletable, Movable
Print Functions¶
struct Print . fn init¶
Initialize the Print struct.
fn init Signature
fn init Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| world | UnsafePointer[MMMWorld, MutUntrackedOrigin] |
— | A pointer to the MMMWorld instance. |
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 | Default | Description |
|---|---|---|---|
| T | Writable |
— | Type of the printable value. |
fn next Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| value | T |
— | The value to print. |
| label | Optional[String] |
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 1.0.0b2