Skip to content
Structs

struct Print

A struct for printing values in the MMMWorld environment.

Traits: AnyType, Copyable, Movable, Representable, UnknownDestructibility


struct Print . fn init

Initialize the Print struct.

fn init Signature

__init__(out self, world: UnsafePointer[MMMWorld])

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

next[T: Writable](mut self, value: T, label: Optional[String] = None, freq: Float64 = 10)

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