Skip to main content

Mojo function

repr

repr[T: Writable](value: T) -> String

Returns the string representation of the given value.

Parameters:

  • โ€‹T (Writable): The type of value. Must implement the Writable trait.

Args:

  • โ€‹value (T): The value to get the string representation of.

Returns:

String: The string representation of the given value.

repr(value: None) -> String

Returns the string representation of None.

Args:

  • โ€‹value (None): A None value.

Returns:

String: The string representation of None.

Was this page helpful?